2004-04-01 12:11 PM
2011-05-17 02:59 AM
Hi all !
I am developing on the Turbo uPsd DK3300 board with 3334d chip. I tried to send data through the SPI . I set pins on Port4 for spi in the PsdExpress program but the data don’t come out from the pins. Only when I set the registers of Port4 configuration (P4SFS0, P4SFS1) manually in the code , the spi start work through this pins 1) Why do I have to set these regs in my code? 2) Why they don’t have the right value from the merging of the design with the code? 3) Do I have to load some init file after merging the code ? 4) did I missed something here ? Thanks2011-05-17 02:59 AM
What you did is correct. This is just the way the part works. First you use PSDsoft to select the function of the port pin from a choice of several options. Then under software control, you choose the function of port 4 as either a port pin or the alternate function. The alternate function can be one of the several options that were available in PSDsoft.