Searching \ for ' C compiling errors on 17c44' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page:
Search entire site for: 'C compiling errors on 17c44'.

No exact or substring matches. trying for part
PICList Thread
'[PICLIST] C compiling errors on 17c44'
2000\11\08@052552 by s.m.brady

picon face

I am a new pic programmer and I would be grateful for your help.

I wish to read and write to external SRAM. I am using a 17c44. I have used
information directly from the application sheet AN548 and used their
guideline code but when I compile using HITech PIC I get errors.

The code for this function I use is

void Write_Sram(void) //trasnferring data to SRAM
movlw 50       ; load table pointer with 0x5000
movwf TBLPTRH  ;
clrf  TBLPTRL  ;
tlwt  1,0x80   ;high byte @table latch
tablwt 0,1,0x81        ;low byte @table latch and latch program memory
The errors are that TBLPTRH and TBLPTRL are undefined symbols.
I have included the pic174x.h at the beginning of the program.
i feel that I am missing something obvious but cannot find it.

Thank you for your time

Sharon Brady

-- hint: PICList Posts must start with ONE topic:
"[PIC]:","[SX]:","[AVR]:" =uP ONLY! "[EE]:","[OT]:" =Other "[BUY]:","[AD]:" =Ads

2000\11\08@055743 by Michael Rigby-Jones

{Quote hidden}

To use 'C' defined labels in asm you have to prefix an underscore on the
label e.g

        movwf _TBLPTRH  ;

It should link correctly after that.


-- hint: PICList Posts must start with ONE topic:
"[PIC]:","[SX]:","[AVR]:" =uP ONLY! "[EE]:","[OT]:" =Other "[BUY]:","[AD]:" =Ads

More... (looser matching)
- Last day of these posts
- In 2000 , 2001 only
- Today
- New search...