CW7.0 dsp56f800 - Help- GPIO - SERIAL COMMUNICATION

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

CW7.0 dsp56f800 - Help- GPIO - SERIAL COMMUNICATION

2,205件の閲覧回数
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

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 返信

857件の閲覧回数
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 件の賞賛
返信