PDA

View Full Version : pic18f252 PORTC.5 (SDO)



jetpr
- 26th March 2005, 19:48
Help problems using PULSIN in this PORTC.5 only this port in the data shild ..
this port is I/O but SDO ...
but i use PULSIN PORTC.5,0.BO no work

mister_e
- 26th March 2005, 20:58
is your PIC running? Is a led blink to this pin work???. I don't see any kind of problem using this pin if your PIC is running/set properly. can you post your whole code here???

jetpr
- 28th March 2005, 04:15
Yes my pic is working but i dont have a led to this pin but to others..

Mycode :

RcValue Var Word
RcInput Var PORTC.5


test:
PULSIN RcInput,0,RcValue
SerOut 1,N9600, RcValue
goto test

mister_e
- 28th March 2005, 17:51
Mycode :

RcValue Var Word
RcInput Var PORTC.5


test:
PULSIN RcInput,0,RcValue
SerOut 1,N9600, [#RcValue]
goto test


what about the above? where your signal come from?? Be sure of your signal, low level and high level. Be sure the input pin is not floating.