Timer0

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
wayne millard
Posts: 234
Joined: Thu May 31, 2007 2:18 pm
Has thanked: 7 times
Been thanked: 12 times

Timer0

Post by wayne millard »

Hi Team,
How do i write to timer0 on a 18F4520

Thanks
Wayne

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: Timer0

Post by Benj »

Hello Wayne,

In normal 8-bit mode you write to the timer count register by doing the following in a C code block.

Code: Select all

tmr0l = 0x00;
Or if you had a Flowcode variable you wanted to pass then you could do it like this

Code: Select all

tmr0l = FCV_VARNAME;


where varname is the name of your Flowcode variable.

Post Reply