Assembly code

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

Moderator: Benj

Post Reply
keejay
Flowcode v5 User
Posts: 115
Joined: Tue Jul 23, 2013 10:02 am
Been thanked: 15 times
Contact:

Assembly code

Post by keejay »

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

User avatar
QMESAR
Valued Contributor
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

Post by QMESAR »

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
P1.jpg
P1.jpg (65.2 KiB) Viewed 2059 times
P2.jpg
P2.jpg (64.01 KiB) Viewed 2059 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: Assembly code

Post by Benj »

Have you seen the Timer component available under Data. It might already do what you need.

Post Reply