Page 1 of 1

PIC Timers

Posted: Sun Aug 14, 2016 3:11 pm
by dz28
I have a PIC application that will require reading the current value of the timer registers and writing a new value
I know this can be done by inserting some C-Code but the code will not simulate.
is there a way to do this and still have flowcode simulate ?
Something like a component macro?

Thanks,
DC

Re: PIC Timers

Posted: Sun Aug 14, 2016 6:05 pm
by QMESAR
Hi

As far as I know everything in a Flowchart simulate except C code call however that does not stop the simulation when C code is included in a Flowchart
only the C code is not simulated

Re: PIC Timers

Posted: Sun Aug 14, 2016 10:11 pm
by dz28
thanks for the reply.
Reading ant writing the timer registers is the heart of my application.
without this the simulation would be useless.

In general not being able to do this restricts the use of timers quite a bid.

DC

Re: PIC Timers

Posted: Mon Aug 15, 2016 6:49 am
by QMESAR
There are many ways to over come this problem in my opinion

(1) you can artificially load values to your application to simulate the application which will test that part
(2) you only debug the Timer reads and writes in Hardware after this simulation

Re: PIC Timers

Posted: Mon Aug 15, 2016 6:50 am
by QMESAR
double post sorry :D