PDA

View Full Version : How would I store and retrieve any number over 255 in say a pic 18f2550



dbachman
- 23rd December 2010, 05:01
It may be simple but I'm not geting it.:confused:

mackrackit
- 23rd December 2010, 08:44
http://melabs.com/resources/samples/pbp/eeword.htm

The LOW and HIGH byte need to be stored separately.

Acetronics2
- 23rd December 2010, 13:47
Hi,

PBP 2.60 also adds a new feature:

you can directly Write and Read Words and Longs ... ( see 2.60 Manual )

But it's you to keep track of the position in the EEPROM ... to give the good address for the LowerByte of your number ... :o

THIS


'************************************************* ***************
'* Name : EE_Vars.PBP *
'* Author : Darrel Taylor *
'* Date : 8/22/2005 *
'* Version : 1.0 *
'* Notes : Requires MPASM, NOT PM *
'* : This is an INCLUDE File for PicBasic Pro *
'* : Please keep it as an INCLUDE File *
'************************************************* ***************
'* Linked *
'* EE_var Variable, [BYTE/WORD], Value *
'* EE_read_var Variable *
'* EE_write_var Variable *
'* EE_write_default Variable *
'************************************************* ***************
'* UN-Linked *
'* EE_byte Name, Value *
'* EE_word Name, Value *
'* EE_read Name, Variable *
'* EE_write Name, Variable *
'************************************************* ***************


here : http://www.picbasic.co.uk/forum/showthread.php?t=2444&pagenumber=

Also could be to consider ...

Alain