
Error mask
Category
general
Offset
8
Range
0 to 0x7FF
Type
unsigned 16-bit
Default
0x600 (Command timeout and Reset)
Command
Set variable
Arduino library
void setErrorMask()
void disableCommandTimeout()
void getErrorMask()
This variable defines which status flags are considered to be errors. Each bit in this variable
corresponds to the bit in the “Status flags” register in the same position. For example, bit 9 in this
register corresponds to bit 9 in the “Status flags” register, which is the “Reset” bit.
The only flags that can be considered errors are the latching status flags (the flags that must be
explicitly cleared before they will change to 0) and the “Command timeout” flag. If you try to set
any other bits in the error mask to 1, those bits will be changed to 0.
Jumper state
Category
general
Offset
10
Type
unsigned 8-bit
Data
•
Bit 0:
JMP1 to GND jumper installed
•
Bit 1:
JMP1 to GND jumper not installed
Bits 2 to 7 are reserved and should each have a value of 1.
Arduino library
void getJumperState()
This variable indicates whether there is currently a jumper installed from the JMP1 pin to GND.
This is determined with a digital reading on the JMP1 pin.
Bit 1 is always the logical inverse of bit 0, but if you read this variable and see that both bits
Pololu Motoron Motor Controller User’s Guide
© 2001–2022 Pololu Corporation
8. Variable reference
Page 40 of 67