Hi there,
I would like to set up Timer0 of a PIC18F46K22 as a counter. In order to do this, I need to set some timer0 configuration bits in order to configure the timer as a counter. I will also need to read the counted value from the timer register. I assume the only way to do this in flowcode is to use assembly code? Is there a tutorial as to how to use assembly code within a flowcode program?
Thanks
Assembly code
Moderator: Benj
- QMESAR
- Valued Contributor
- Posts: 1287
- Joined: Sun Oct 05, 2014 3:20 pm
- Location: Russia
- Has thanked: 384 times
- Been thanked: 614 times
- Contact:
Re: Assembly code
Why assembly a C function call with normal C code is perfect
here I am using a C icon and C code to use Timer1 on dsPIC as an example
here I am using a C icon and C code to use Timer1 on dsPIC as an example
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR
- 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: Assembly code
Have you seen the Timer component available under Data. It might already do what you need.
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