Hi Team,
How do i write to timer0 on a 18F4520
Thanks
Wayne
Timer0
Moderator: Benj
- 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
Hello Wayne,
In normal 8-bit mode you write to the timer count register by doing the following in a C code block.
Or if you had a Flowcode variable you wanted to pass then you could do it like this
where varname is the name of your Flowcode variable.
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;Code: Select all
tmr0l = FCV_VARNAME;where varname is the name of your Flowcode variable.
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