Motorola USB08 Betriebsanleitung Seite 55

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 100
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 54
55
8.20 Register Display and Change R
Format:
R I/OReg|CtrlReg
or
R I/OReg|CtrlReg=NewValue
Command to display and modify the MCU Input/Output registers. I/OReg or CtrlReg stands for one
of the HC908 I/O or control registers, e.g. PTA or DDRA. When using this command to change a
register, no spaces should be left either side of the equals sign. The R command may be used in two
different ways:
1. Issuing R followed by the name of an MCU I/O or control register displays the current state
of that register, with the set bits highlighted in bold. For example, on the 908GP32:
R SPCR
might produce the following line in the output window:
0010 SPCR [$28,#40] SPRIE DMAS SPMSTR CPOL CPHA SPWOM SPE SPTIE
The output line shows: the address of the register, its name, its current value in hexadecimal, a comma,
its current value in decimal, the eight bits named, and highlighted in bold if set.
Note that there is one refinement to this version of the command. If the register is one of those that
have a hi and lo part effectively making up a sixteen bit register, then typing the name without the last
H or L will display the current sixteen bit value, for example:
R TCNT
might produce:
100E TCNT [$5C4A , #23626]
2. Issuing R followed by the name of an MCU I/O register, an equals sign and a new value, will
set that register to the new value (if the register is one that allows writing). Binary number
representation is allowed also. Example:
R DDRB=03 or
R DDRB=%00000011
sets the DDRB1 and DDRB0 bits in the port B data direction register.
Note: This command can read, but cannot write, to registers which are implemented as FLASH
locations.
Seitenansicht 54
1 2 ... 50 51 52 53 54 55 56 57 58 59 60 ... 99 100

Kommentare zu diesen Handbüchern

Keine Kommentare