Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changes between Version 4 and Version 5 of FreeRunnerLEDs


Ignore:
Timestamp:
2009-11-18T21:06:04Z (10 years ago)
Author:
Jiri Svoboda
Comment:

On vs. off

Legend:

Unmodified
Added
Removed
Modified
  • FreeRunnerLEDs

    v4 v5  
    2121'''Register descriptions:'''
    2222 * 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.
    2424 * GPBDN![10:0]: 0 = pull-down enabled, 1 = pull-down disabled in GPB10..GPB0.
    2525
    26 For blinking LEDs, we select output mode (0b01) for GPB0..GPB2. Pull-down should be disabled. Then write to GPBDAT![0:2].
     26For 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.
    2727
    2828'''References:'''
     
    3333 * Not verified
    3434 * 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?)