ok thanks mack
unfortunately i still dont understand much about these interupts and how they can help me, but ill keep searching around and looking at example codes.
haha ill be as much help as possiblebut dont expect much!
ok thanks mack
unfortunately i still dont understand much about these interupts and how they can help me, but ill keep searching around and looking at example codes.
haha ill be as much help as possiblebut dont expect much!
sorry again to post here, but since i dont actually have the program yet to play with since it hasnt arrived, i cant actually trial and error anything im doing... or any basic language im picking up.
one thing i am interested in is just reading values that would be saved at a certain filename. ive looked up the filenames in the datasheets etc..
to use my specific data value would i have to convert it to var? and then use it in my calculation algorithm.
READ F69H, w0.BYTE.o 'cap1 value written to word0 byte 0
READ F67H, W0.BYTE.1 'cap2 value written to word0 byte 1
READ F65H, W0.BYTE.2 'cap3 value written to word0 byte 2
is this an incorrect way of accessing my data? im sorry i cant actually test it myself as of yet...
You have lost me.
Where is the file being saved? Are you meaning save the data to eeprom?
This page has several samples.
http://www.melabs.com/resources/samples.htm
Dave
Always wear safety glasses while programming.
sorry im quite bad at explaining, but ill try my best. ill check that site out as well thanks
basically its being saved in the thing called SRAM, if im correct. which is similar to normal ram but its for special functions. Basically its just implemented as static ram. with an address of F69H for CAP1BUFH, which is the place where "capture 1 register highbyte", the place where the measurement (period in my case) has been stored temporarily, till it is overwritten by the next measurement.
ok its easier than i thought... u can just right the file address in your calculation.... e.g. (F69H)/5
am i right... or wrong again? sorry picbasicpro should be here today for me to learn from trial and error... looking at example codes and old manuals on the internet only goes so far
From Micros web site
Calling it SRAM is a little misleading.Static RAM or SRAM
Static Random Access Memory. Program memory you can Read/Write on the target board that does not need refreshing frequently.
In your case I think you have the idea. You are talking about program variables. Variables to be used inside the program. Not permanent storage.
You have for the 18Fs four variable sizes to pick from
bit, byte, word, long
near the begining of your code you will have something like
Then you can use F69H as in your example.Code:F69H VAR BYTE
The value will be erased at power down.
Last edited by mackrackit; - 19th August 2009 at 11:09. Reason: spelling
Dave
Always wear safety glasses while programming.
ahhh thank you, thats cleared many things up for me. my picbasic pro just arrived so ill be testing all my attempted codings now!
cheers mack
Bookmarks