I'm sorry, but I,m lost. Have looked are the data sheet for 08m2 ( which I'm using) and am lost in finding that "value". Please help!The detail is to be found in Microchip's datasheet for the raw PIC, that a specific PICAXE uses.
See: http://www.picaxe.com/What-is-PICAXE/PICAXE-Chip-Labels/
(I've not checked - but it wouldn't surprise me if the 18M2 was different to the other M2's...)
; 2 1 1
;0010 0001 0001
; | |xx| / xx = discarded
; \ / / /
; 1001 0001/
; 9 1
Yes, plenty, but it can be quite "hard work". Timers, various gates and latches, Comparators, ADC, DAC, serial ports, etc..Are there other hidden treasures in side that the every day experimenter might want to know about?
Many thanks for checking.(I had a quick scan through the datasheets for the 08M2,14M2,18M2 & 20M2.
SSP1BUF has the same value (211h), or 91h in Picaxe terms, in each case.)
I used to have a nice graphic but I cannot find that now, but as you suggest, and how I would draw it -On Page 23 of said datasheet, you'll find that SSP1BUF has a value of 211h. This has to be manipulated a little, for use with the PeekSFR/PokeSFR commands:-
$211 = 0010 0001 0001
|| | | ||||
10 0 1 0001
\\ \ | ||||
\\ \ | ||||
\\ || ||||
1001 0001 => $91
For the M2 devices the greatest treasure is probably the Data Signal Modulator (DSM). This allows a single output to be selected from two sources, effectively a hardware 2-to-1 multiplexor.Are there other hidden treasures in side that the every day experimenter might want to know about?
$00C => $0C $08C => $2C $10C => $4C $18C => $6C
$00D => $0D $08D => $2D $10D => $4D $18D => $6D
$00E => $0E $08E => $2E $10E => $4E $18E => $6E
$00F => $0F $08F => $2F $10F => $4F $18F => $6F
$010 => $10 $090 => $30 $110 => $50 $190 => $70
$011 => $11 $091 => $31 $111 => $51 $191 => $71
$012 => $12 $092 => $32 $112 => $52 $192 => $72
$013 => $13 $093 => $33 $113 => $53 $193 => $73
$014 => $14 $094 => $34 $114 => $54 $194 => $74
$015 => $15 $095 => $35 $115 => $55 $195 => $75
$016 => $16 $096 => $36 $116 => $56 $196 => $76
$017 => $17 $097 => $37 $117 => $57 $197 => $77
$018 => $18 $098 => $38 $118 => $58 $198 => $78
$019 => $19 $099 => $39 $119 => $59 $199 => $79
$01A => $1A $09A => $3A $11A => $5A $19A => $7A
$01B => $1B $09B => $3B $11B => $5B $19B => $7B
$01C => $1C $09C => $3C $11C => $5C $19C => $7C
$01D => $1D $09D => $3D $11D => $5D $19D => $7D
$01E => $1E $09E => $3E $11E => $5E $19E => $7E
$01F => $1F $09F => $3F $11F => $5F $19F => $7F
$20C => $8C $28C => $AC $30C => $CC $38C => $EC
$20D => $8D $28D => $AD $30D => $CD $38D => $ED
$20E => $8E $28E => $AE $30E => $CE $38E => $EE
$20F => $8F $28F => $AF $30F => $CF $38F => $EF
$210 => $90 $290 => $B0 $310 => $D0 $390 => $F0
$211 => $91 $291 => $B1 $311 => $D1 $391 => $F1
$212 => $92 $292 => $B2 $312 => $D2 $392 => $F2
$213 => $93 $293 => $B3 $313 => $D3 $393 => $F3
$214 => $94 $294 => $B4 $314 => $D4 $394 => $F4
$215 => $95 $295 => $B5 $315 => $D5 $395 => $F5
$216 => $96 $296 => $B6 $316 => $D6 $396 => $F6
$217 => $97 $297 => $B7 $317 => $D7 $397 => $F7
$218 => $98 $298 => $B8 $318 => $D8 $398 => $F8
$219 => $99 $299 => $B9 $319 => $D9 $399 => $F9
$21A => $9A $29A => $BA $31A => $DA $39A => $FA
$21B => $9B $29B => $BB $31B => $DB $39B => $FB
$21C => $9C $29C => $BC $31C => $DC $39C => $FC
$21D => $9D $29D => $BD $31D => $DD $39D => $FD
$21E => $9E $29E => $BE $31E => $DE $39E => $FE
$21F => $9F $29F => $BF $31F => $DF $39F => $FF