DNOP is a macro. (Two NOP instructions).
See instruction NOP.
Luciano
DNOP is a macro. (Two NOP instructions).
See instruction NOP.
Luciano
I tried the code that should generate two gray bars on either side of the screen and a white stripe in the middle on a tv and got a nice black picture. According to the info on http://www.rickard.gunee.com/project.../pic/howto.php I need to generate 3 levels between 0v and 1v. I used the setup he had where B0 goes through a 1K resistor and B1 goes through a 470 ohm resistor and I got output voltages of around 2.3 volts. I also think that my code might not be fast enough. I'm using the PAUSEUS command but Im not sure so Im going to hook it up to an oscilloscope tomorow and check it out.
Perfect situation to learn/use MPLAB stop watch. That will teach you, at least, how PAUSEUS is acurate for a specific Xtal. You should have a look to that. Probing with a scope is also an option... for that, i'll prefer MPLAB stopwatch.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Ive been looking around the internet for info on the MPLAB stopwatch and I really have no idea what it is and how to use it. The most helpful thing I found was this code segment (posted by you, mister_e):
' Fine tuned with MPLAB StopWatch to get MainLoop = 1 sec
'
for delay=1 to 307
@ nop
next
Bruce give me a short explanation of it before i wrote those lovely lines
http://www.picbasic.co.uk/forum/show...ruce+stopwatch
There's a few explanation in the MPLAB help-file too.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Nice google
http://www.sparkfun.com/tutorial/ser...al-2-mplab.htm
And of course the MPLAB quick start guide
http://ww1.microchip.com/downloads/e...Doc/51281d.pdf
HTH
EDIT: Oups sorry Luciano![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Ah Ive almost got it now. I downloaded MPLAB IDE v7.22 and loaded up the .asm file that picbasic pro compiled. I started the stopwatch and ran the program with MPLAB SIM as the tool but it just ends up saying "Time (mSec) 3.276800". How can I use it to measure the time between two points in my program?
Bookmarks