MEL PICBASIC Forum - BigPIC4 Dev Board

• Recent Forum Posts

Re: Doing something at predefined amount of steps?

Thanks Henrik, so Say A=200 B=300, C in this case will be 65535-100=65435, right? So if I take 65535 and minus it result, I should receive correct difference between A and B, right?

CuriousOne Today, 18:46

Re: Doing something at predefined amount of steps?

towlerg Today, 18:13

Re: Doing something at predefined amount of steps?

It will wrap around, 0-1=65535 provided the variable where the result is stored is a WORD.

HenrikOlsson Today, 17:23

Re: Doing something at predefined amount of steps?

Oh and by the way, currently I don't have access to machine with PBP, what will happen if C=A-B and B is > A ? all variables are word length. I need to determine difference between A and B, but...

CuriousOne Today, 16:56

Re: Doing something at predefined amount of steps?

Yes, I meant exactly that one.

In my case, there will be 16F886 running at 8mhz and maximum frequency will be around 2khz, so I guess, modulo variant will also work. Will assemble test circuit...

CuriousOne Today, 16:54

Re: Doing something at predefined amount of steps?

Wasn’t it just something like this?
not even timing of course because every fifth iteration takes slightly longer to execute, but could be balanced up if it mattered.

variable var word...

Art Today, 15:30

Re: Doing something at predefined amount of steps?

I don't know for sure but since it involves division my guess is that this is slower. Speed isn't always everything though.

Tell you what, why don't you try both ways and measure the difference,...

HenrikOlsson Today, 15:01

Re: Doing something at predefined amount of steps?

Thanks! this is way better and simpler. Speaking speed-wise, will this be faster in execution than my code with additional variable?

CuriousOne Today, 14:42

Re: Newbie Manchester Coding question

Duh, yup, that was it [slapping forehead].

Cheers,

Troy

rocket_troy Today, 14:22

Re: Newbie Manchester Coding question

the DEBUG output is inverted logic to suit the pickit 2 serial input, your setup might req true logic
try
DEFINE DEBUG_MODE 0 ' Debug mode: 0 = True, 1 = Inverted

me too , i was...

richard Today, 13:03
• BigPIC4 Dev Board

Forum Community Competition - Winner gets a BigPic4 development board

by Published on - 23rd January 2011 14:06  Number of Views: 10771

Although it was really neck and neck for a while, the winner is Pimentel, with a POV clock design. Great job everyone who ...

POV Clock by Pimentel

by Published on - 27th February 2011 21:52  Number of Views: 6354

Hello, my name is Rogério Corrêa Pimentel, I live in Brasil , In São Paulo state, Campinas city and I would like very much ...

Automatic Digital Camera Photography Device

by Published on - 27th February 2011 17:04  Number of Views: 4067

Automatic Digital Camera Photography Device

Introduction:

The aim of this project was two fold: ...

How to build an Ultrasonic Ranger circuit

by Published on - 27th February 2011 03:51  Number of Views: 5302

I am pleased to submit this article as an entry in the current Forum Competition. I also hope that someone who might be ...

How to use the HLVD module as a low voltage monitor

by Published on - 27th February 2011 03:50  Number of Views: 8739