CW7.0 dsp56f800 - Help- GPIO - SERIAL COMMUNICATION

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CW7.0 dsp56f800 - Help- GPIO - SERIAL COMMUNICATION

1,668 Views
dspfusm
Contributor I
HI!!!
 
I need any help about the configure of GPIO, i trying to recieve a 0 or 1(from a uC),  and put 0 or 1in this port, how i configure the software to activate this.
 
Also i need to get data from a PC (RS232 comunication) i'm working with SC0, receive 1 char,( 9600 bds, 8 bits, 1 stop, 0 parity) "AS1recieveChar()" this is the method that i work.
 
i use the cpu=56f8323 and the cw for dsp56f800 R7.0
 
--
Alban Edit: version+target in subject line.
 

Message Edited by Alban on 2007-05-02 08:03 PM

Labels (1)
Tags (1)
0 Kudos
Reply
1 Reply

320 Views
admin
Specialist II
First of all you need to configure GPIO module registers - see chapter 8 of peripheral user manual MC56F83000UM.pdf - you need to configure Data Direction (GPIOn_DDR reg), enable/disable perephiral on corresponding gpio pins (GPIOn_PER reg), if you want to use interrupts configure IENR, IAR, IPOLR register for gpio pin and set interrupt priority (see mc56f8323.pdf datasheet part 5). If you use Processor Expert - there are beans for GPIO and External Interrupt - use them.
0 Kudos
Reply