Hi all,
I want to simulate Push Button with a PIC and control it by RS232.(Letter 'A' shall put the Bit 2 of port B to low during 200ms)
In attached below you can see an extract of by file.
My problem is that the delay of 200ms is not respected.
If i send quickly Letter 'A' the delay is shorter than 200ms ?? Why ?
PIC seems to trigger with the receiver of RS232 and can't wait 200 ms
MIKE
Pulse on Port B
- 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:
Re: Pulse on Port B
Hello Mike
Your program is configured to use the RC oscillator. I beleive that you are meant to be using the PIC with a 3.27MHz crystal. Try switching the hardware and software configurations over to XTAL and you should see the 200ms delay working correctly.
This is done in Flowcode by using the Chip -> Configure menu.
This is done on the hardware by switching the Oscillator select switch over from RC to XTAL.
Your program is configured to use the RC oscillator. I beleive that you are meant to be using the PIC with a 3.27MHz crystal. Try switching the hardware and software configurations over to XTAL and you should see the 200ms delay working correctly.
This is done in Flowcode by using the Chip -> Configure menu.
This is done on the hardware by switching the Oscillator select switch over from RC to XTAL.
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