| 1 | = Programming Neo FreeRunner LEDs = |
| 2 | |
| 3 | Neo FreeRunner has three LED indicators: |
| 4 | |
| 5 | || '''Color''' || '''Location''' || '''IO Port/pin''' || |
| 6 | || orange || behind power button || GPB0 || |
| 7 | || blue || behind power button || GPB1 || |
| 8 | || red || behind aux button || GPB2 || |
| 9 | |
| 10 | Combination of orange and blue behind the power button should give purple. |
| 11 | |
| 12 | == Port B Control Registers == |
| 13 | |
| 14 | || '''Register''' || '''Address''' || '''Description''' || '''Reset value''' || |
| 15 | || GPBCON || 0x56000010 || Pin configuration || 0x0 || |
| 16 | || GPBDAT || 0x56000014 || Data in/out || undefined || |
| 17 | || GPBDN || 0x56000018 || Pull-down disable || 0x0 || |
| 18 | |
| 19 | GPB has 11 pins (GPB0 through GPB1 inclusive). |
| 20 | |
| 21 | Register descriptions: |
| 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: Obvious, write in output mode and read in input mode. |
| 24 | * GPBDN![10:0]: 0 = pull-down enabled, 1 = pull-down disabled. |
| 25 | |
| 26 | For blinking LEDs, we select output mode (0b01) for GPB0..GPB2. Pull-down should be disabled. Then write to GPBDAT![0:2]. |
| 27 | |
| 28 | References: |
| 29 | * [http://www.opatnet.cz/elektronika/datasheet/U/um_s3c2442b_rev12.pdf Samsung S3C2442B Processor Datasheet] Porg B Control Registers, Page 9-10. |
| 30 | * [http://downloads.openmoko.org/developer/schematics/GTA02/Schematics_Freerunner-GTA02_A5-A7cumulative_public_RC0.pdf Neo FreeRunner Schematics] MCU, sheet 3. |
| 31 | |
| 32 | Notes: |
| 33 | * Not verified |