home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.sys.raspberry-pi      Raspberry Pi computers & related hardwar      26,127 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 26,067 of 26,127   
   Single Stage to Orbit to Gordon Henderson   
   Re: Baremetal programiing the Pimoroni T   
   17 Jan 26 15:21:51   
   
   From: alex.buell@munted.eu   
      
   On Mon, 2026-01-12 at 10:57 +0000, Gordon Henderson wrote:   
   > > like to know how to do it baremetal with ARM thumb assembly.    
   >    
   > ... my use is the RISC-V cores in the rp2350, so bare metal RISC-V   
   > asembly.... But the principle for programming the PWM generators   
   > is more or less the same from eith CPU, so I understand, but it's   
   > something I've not gotten round to.   
   >    
   > I'd suggest to have a look at the manual and SDK and see how to do it   
   > from C then hand translate the C code into ASM...   
      
   I've found the following:   
      
   https://github.com/thejpster/rp-hal-rp2350-public/blob/main/rp23   
   x-hal/examples/pwm_blink.rs   
      
   Looks like this is what I've been looking for.    
      
   The funny thing is that the Pimoroni tiny2040 that I also have has a   
   RGB LED on it, there's no data sheet for it but it appears to be   
   reversed, in that all the GPIO pins attached to this LED are all active   
   low, (i.e ~R GPIO18, ~B GPIO19, ~G GPIO20) so works in the opposite way   
   to the LED on GPIO 25 on rp2040!   
   --    
   Tactical Nuclear Kittens   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca