OK let's see what RA5 is made of...same rules apply.
We have AN4, C2OUT and SS listed at Page 5.
Let's refer to PORTA section, maybe we have an open collector... maybe....
Page 47, Figure 3.6... mmm nope can be used as GP i/o.
So let's see the ADC section, table 9-2 page 111... ANSEL register.
This have to be
ANSEL=0
ADCON0=0
Let's play safe and disable all ADCs
ANSELH=0
Now the comparators, Register8-1, page 90. At POR they're already disabled... but let's play safe.
CM1CON0=0
CM2CON0=0
Voltage reference, register 8-5, page 99
VRCON = 0
Pulsout will toggle the I/O state, maybe not a bad idea to clear all I/o at the beginning.
PORTA=0
PORTB=0
This ought to work. Case it doesn't, maybe not a bad idea to try
Code:
HIGH PORTA.5
PAUSE whatever delay
LOW PORTA.5
OR add a LOW PORTA.5 after the PULSOUT line.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks