Hi,
I'm using 18F46K20 PIC using Oshonsoft and MPLAB.
Oshonsoft doesn't fully support the K type, so I've set it to 18F4620 instead. I've set MPLAB to 18F46K20.
For a test I have:
Symbol rled = PORTE.1
Symbol yled = PORTE.0
If I try:
rled = 1
WaitMs 1000
yled = 1
WaitMs 1000
rled = 0
WaitMs 1000
yled = 0
WaitMs 1000
RLED and YLED don't turn on together, RLED goes OFF as YLED comes ON.
If I use:
PORTE = %00000001
WaitMs 1000
PORTE = %00000011
WaitMs 1000
PORTE.1 = 0
WaitMs 1000
PORTE.0 = 0
WaitMs 1000
both turn on as expected.
Any ideas please.
Camerart.
I'm using 18F46K20 PIC using Oshonsoft and MPLAB.
Oshonsoft doesn't fully support the K type, so I've set it to 18F4620 instead. I've set MPLAB to 18F46K20.
For a test I have:
Symbol rled = PORTE.1
Symbol yled = PORTE.0
If I try:
rled = 1
WaitMs 1000
yled = 1
WaitMs 1000
rled = 0
WaitMs 1000
yled = 0
WaitMs 1000
RLED and YLED don't turn on together, RLED goes OFF as YLED comes ON.
If I use:
PORTE = %00000001
WaitMs 1000
PORTE = %00000011
WaitMs 1000
PORTE.1 = 0
WaitMs 1000
PORTE.0 = 0
WaitMs 1000
both turn on as expected.
Any ideas please.
Camerart.