PSoC™ Creator & Designer Forum Discussions
In an attempt to get these projects out the world at large, I have decided to post them to the community components forms. Again, not specifically a component, this is the USB function generator application. Source is included for the C# application as well as the PSoC 3 project. Extra information is also included in the zip archive.
This memo includes a PC based function generator, implemented on a PSoC 3 and controlled via a PC App over USB. The function generator app:
Allows complete control over a dual output 16 bit PWM running at up to 66 Mhz.
The PWM clock divider, PWM period, compare1 and compare2 values, and compare modes (LT, LTE, GT, GTE, E) can all be controlled via the App.
Each output can be enabled or disabled independently, or the entire PWM can be disabled.
The second channel‟s compare value can be slaved to the first channel.
The duty cycle can be locked so you can change the frequency without worrying about changing the compare value.
An optional duty cycle limit can be imposed (10% - 90%) on the compare values (preventing full on or full off, a useful safety feature when driving a switching regulator).
The output can be dynamically switched between GPIO (P0[0] and P0[1]) or SIO pins (P12[0] and P12[1])
When using the SIO, the output voltage can be either VDDIO or a variable voltage set by an adjustable DAC controlled via the application.
Each output pin‟s drive mode can also be changed via the app: Strong, open drain drives low, open drain drives high, resistive pull up, resistive pull down, and resistive pull up/down can all be used.
A big thanks to RLRM‟s generic USB HID app note. It was his simplified USB example that made this possible.
Show LessAt the uni where I work I want to get people onto psocs in the future to replace the PIC micro controllers we use to teach students.
however we need to start with assembly language, just wondered if it is possible to run an assembly only project in psoc creator.
We would need to be able to step through single instructions and see the ALU flags changing. Z N C etc. would love if this was possible because for C stuff psoc rocks!
Show LessHi,
I am a student in a electronic school and i need to realize a project with two PSOC 5 's kits ( CY8CKIT-050 PSOC 5 LP and module CY8CKIT-017 CAN/LIN).
I am beginner in "C" programmation, and i need to program a can BUS to receive information sent by a user interface to treat this message (speed measure) and transmit informations on the can bus to an other card.
The received information on can bus are divided in three informations (gain, offset, diameter).
My project schematic is in attach file.
Thanks for helping !
Show LessHi,
I'm programming the UART to do 921,600 baud and seem to be having issues with the upper nibble on values. The \r comes through fine but anything with ones in the upper nibble either gets shifted left or an extra binary one added.
'l' should be 0x6C, is 0xCC
'=' should be 0x3D, is 0x7D
'1' should be 0x31, is 0x71.
There is a warning about the UART_IntClock's accuracy not being within tolerance. I tried going from 16X over sampling back to 8X, which changed the clock's value but it still have the same value. Also tried 2 stop bits.
Any ideas or known solutions?
Nick
Show LessI have filed a tech case on this with Cypress, but thought community should know -
DTMFDialer_DialFromRam( );
If this function is given a non legit DTMF dial character/value, hangs
main().
That would be any ordinal value not belonging to "0123456789,*#AaBbCcDd"
Clearly if noise or any other corruption of a value occured, would be good
if it does not take main() down.
Regards, Dana.
At the uni where I work I want to get people onto psocs in the future to replace the PIC micro controllers we use to teach students.
however we need to start with assembly language, just wondered if it is possible to run an assembly only project in psoc creator.
We would need to be able to step through single instructions and see the ALU flags changing. Z N C etc. would love if this was possible because for C stuff psoc rocks!
Show Lesshttp://www.cypress.com/?app=forum&id=2232&rID=93321&message=posted
Would be nice if the memory view tab in debug offered a FLASH option and handled
this manual process.
Regards, Dana.
Show Less