Important question: I noticed that the memory map (SFR) of the 18Fxx chips used for the 28X2/40X2 Picaxes is quite different form the 16Fxx map. In particular, while the 16F chips have all their registers between 0x00 and 0xff, the 18F series has them in an upper bank (up to 0xfff). The Picaxe manual says for the "poke" command:
"The second function of the poke command is for experinced users to write values to the internal microcontroller SFR (special function regsisters) (not 28X2)."
So does that mean there is no way to access advanced features of the 28X2? In my particular case I would be interested to modify the counter 2 prescaler to produce slow PWM frequencies (on the 16F series this needs a poke into register 0x12). But there is a variety of other possibilities I can think of.
So I would like to make a feature request - PLEASE extend the peek/poke commands to allow access to higher addresses (i.e. accept word variables for the address) or add special peek/poke versions to access those SFR registers on the 18F! Or is there a hard technical reason this cannot be done?
Wolfgang
"The second function of the poke command is for experinced users to write values to the internal microcontroller SFR (special function regsisters) (not 28X2)."
So does that mean there is no way to access advanced features of the 28X2? In my particular case I would be interested to modify the counter 2 prescaler to produce slow PWM frequencies (on the 16F series this needs a poke into register 0x12). But there is a variety of other possibilities I can think of.
So I would like to make a feature request - PLEASE extend the peek/poke commands to allow access to higher addresses (i.e. accept word variables for the address) or add special peek/poke versions to access those SFR registers on the 18F! Or is there a hard technical reason this cannot be done?
Wolfgang