EasyManua.ls Logo

VORAGO PEB1 - Page 19

VORAGO PEB1
37 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
VA41620/VA41630 Evaluation Board User’s Manual
V1.0
18
Command
Arguments
Comments
$help
none
Provides list of all available commands
$help
$readport [port 0-6] [mask] Masked pins input, read IO port
$setport [port 0-6] [mask] [val] - Set masked pins hi/loon Port output 1 or 0
$readadc [ch 0-15] - Readan ADC channel
$setdac [0 or 1] [0x0 0xfff] Set DAC0 or DAC1 output
$romlwr [addr] [data32] Write word to SPI boot FRAM
$romlrd [addr] Read word from SPI boot FRAM
$auxwr [addr] [data32] - Write word to aux FRAM
$auxrd [addr] Read word from aux FRAM
$ebiinitInitialize external mem interface
$ebiwrite [addr] [data32] Write word to EBI
$ebiread [addr]Red word from EBI
$cantestCAN bus loopback test
$ethtestEthernet test
$spwtestSpaceWire test
$i2ctestI2C test I2C1(m) -. I2C2(s)
$accel [(opt) 1: enable every sec] Get accelerometer data
$brdtmp [(opt) 1: en every sec]Get board temperature
$rstsRead reset source register
$fwverGet firmware version
$srstSoftware reset
$helpPrint help
Note:
$i2ctest - Requires I2CA and I2CB be externally connected together
$cantest Requires CAN0 and CAN1 be externally connected together
$readport
[portNum] [mask]
Ports A through port G are read and a 16-bit hex value is displayed for ports A-F and 8-bit hex
value is read for port G. Ports A through G are accessed with portNum 0 through 6.
Example: $readport 0 0x00ff
Response: OK 0x1234
Note: Some GPIO are dedicated to certain peripherals by the software included with this
package.
PORTA [7:4]: SPI2
PORTB [15:12]: UART1
PORTF [5:2]: SPI1
PORTF [9:6]: UART2
PORTG [1:0]: UART0
PORTG [4]: SPI1 (FRAM chip select)
$setport
[portNum] [mask]
[val]
Sets a single port to a value depending on the mask
Example: $setport 0 0x00ff 0x0055
Response: “OK if port number is valid, “ERR is reported for invalid port number.
$readadc
[channelNum]
Reads the value of the specified ADC channel
Example: $readadc 11
Response: $OK 0x0373
$setdac
[dacNum] [data]
Sets the output of DAC0 or DAC1 to the voltage corresponding to the data [hex value 0x0 to
0xfff]
Example: $setdac 0 0x800
Response: $OK
ANOUT0 will be set to ½ VDDREF, or about 1.65v
$rom1wr
[addr] [data32]
Writes one address location of the SPI boot FRAM device.
Example: $rom1wr 0x0 0x0