View previous topic :: View next topic |
Author |
Message |
neal1 Guest
|
how to add Internal register file of uP to c file? |
Posted: Wed Feb 25, 2009 11:18 am |
|
|
i would like to access the internal register of 16f628a, is there any way to add in c file as default? so that i no need define every register that i use...
it is need include some file? |
|
|
Ttelmah Guest
|
|
Posted: Wed Feb 25, 2009 11:32 am |
|
|
I already answered this in your thread about how to access an individual register...
Seriously though, one of the whole points about using a compiler, is to let the compiler do the register accesses for you. 99% of the code written, need never touch a single register by name. This allows it to be portable to other chips, without having to redefine the register locations.
Best Wishes |
|
|
dyeatman
Joined: 06 Sep 2003 Posts: 1937 Location: Norman, OK
|
|
|
Guest
|
|
Posted: Thu Feb 26, 2009 1:33 am |
|
|
Ttelmah wrote: | I already answered this in your thread about how to access an individual register...
Seriously though, one of the whole points about using a compiler, is to let the compiler do the register accesses for you. 99% of the code written, need never touch a single register by name. This allows it to be portable to other chips, without having to redefine the register locations.
Best Wishes |
can u send me the link? i not sure which one u mention about... |
|
|
|