I am quite new to flowcode so excuse me if this is a silly question.
I have programmed this PIC 18F84A, to turn on each port ( ie: RBO to RB7 & RA0 to RA4 a total of 13 ports) in a sequence of..... on for 1 second & off for one second.. next port etc. I have used the Led blocks to show the outputs via the Leds lighting up in sequence. My problem is that, although all of the Leds light up correctly in sequence in the run mode, when I transfer the PIC to an equivalent hand built circuit I constructed, then RA4 does not light the Led. When I connect my multimeter to the RA4 port there is no voltage output from this port. Any ideas?
Port RA4 ....16F84A
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Hello
Try connecting a 4.7K <-> 10K pullup resistor between pin RA4 and +5V. It is possible that pin RA4 is missing the internal pullup resistor and therefore cannot drive its output high by itself.
Try connecting a 4.7K <-> 10K pullup resistor between pin RA4 and +5V. It is possible that pin RA4 is missing the internal pullup resistor and therefore cannot drive its output high by itself.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
I think that with the pull up resistor RA4 can source and sink current.
Without the resistor you can only sink current.
Without the resistor you can only sink current.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel