Changes between Version 4 and Version 5 of FreeRunnerLEDs
- Timestamp:
- 2009-11-18T21:06:04Z (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FreeRunnerLEDs
v4 v5 21 21 '''Register descriptions:''' 22 22 * GPBCON: Two configuration bits per pin (GPBCON![1:0] for GPB0, GPBCON![3:2] for GPB1, etc.), 00 = Input, 01 = Output, 10 = XXX, 11 = reserved. XXX refers to internal signals, different for each pin. 23 * GPBDAT![10:0]: Obvious, write GPB10..GPB0 in output mode and read GPB10..GPB0 in input mode.23 * GPBDAT![10:0]: Write GPB10..GPB0 in output mode and read GPB10..GPB0 in input mode. 24 24 * GPBDN![10:0]: 0 = pull-down enabled, 1 = pull-down disabled in GPB10..GPB0. 25 25 26 For blinking LEDs, we select output mode (0b01) for GPB0..GPB2. Pull-down should be disabled. Then write to GPBDAT![0:2]. 26 For blinking LEDs, we select output mode (0b01) for GPB0..GPB2. Pull-down should be disabled. Then write to GPBDAT![0:2]. To turn the LED on, the pin must be driven high, to turn it off it must be driven low. 27 27 28 28 '''References:''' … … 33 33 * Not verified 34 34 * From the documentation I've seen it is not clear whether the registers are sensitive to endianness and if so, what their endianness is. 35 * Could not find in datasheet whether H drive is coded as 1 or 0 (probably 1?)