Pulse on Port B

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
MIKE_31
Posts: 15
Joined: Wed Aug 08, 2007 12:11 pm
Location: FRANCE

Pulse on Port B

Post by MIKE_31 »

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
Attachments
test_rs232.fcf
my project
(4 KiB) Downloaded 311 times

User avatar
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

Post by Benj »

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.

Post Reply