Baking Pi style Course for Pine64-LTS
#2
Hello!

I made some progress in figuring out where the address of the LED light is in RAM. Based off some of the other posts, I know that the light next to the reset switch is Blue. The Blue LED listed at the bottom of page 12 on the schematic

https://files.pine64.org/doc/SOPINE-A64/...180130.pdf

is connected to PL7. According to the User Manual

https://files.pine64.org/doc/datasheet/p...l_V1.0.pdf

PL7 is a GPIO pin, to write to it you have to enable output at PL Configure Register 0. In section 3.22.1 of the above manual, it says that PIO has a base address of

0x01F02C00

and PL configure Register 0 has offset

0*0x24 + 0x00

There are 32 bits at Register 0, and the one at PL7 is bits 30:28. I would need to set these 3 bits to Output which is the bit sequence 001. At the PL Data register is where I would need to set the value of the pin. Now the PL_DAT location's offset from the PIO Base Address

0*0x24+ 0x10

From there the state of the Pin 7, which is bit 7 should be set to 0 ( I think low states correspond to the pin being on for the LED light based off of other posts here on writing to the GPIO using shell commands on linux).

Hope that helps anybody else who happened to be curious. Also pardon for any errors, I haven't tested everything just yet.
  Reply


Messages In This Thread
RE: Baking Pi style Course for Pine64-LTS - by lscdmore - 04-30-2021, 10:31 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  which emulator is it possible to install on Pine64 Lts Paulo Capel 0 760 09-11-2022, 12:28 PM
Last Post: Paulo Capel
  really want to use lvds flat screen displays on Pine64/Sopine jjello-53 0 774 08-29-2022, 01:02 PM
Last Post: jjello-53
  Docker Swarm Cluster with pine64-lts and armbian build tmorin 1 6,504 11-06-2018, 10:18 PM
Last Post: tllim

Forum Jump:


Users browsing this thread: 1 Guest(s)