Search found 146 matches
- Tue Dec 29, 2020 2:22 am
- Forum: General discussion
- Topic: Bluepill port manipulation - need help understanding registers
- Replies: 3
- Views: 2665
Re: Bluepill port manipulation - need help understanding registers
From what I'm reading, doing "GPIOA->CRH = 0xFFF33333" would set the pins I want as outputs but leave the other pins on their existing state, correct? No, it would set the other pins for "Alternate function output Open-drain" (MODE and CNF both 11). For changing one pin, if I un...
- Tue Dec 29, 2020 12:20 am
- Forum: General discussion
- Topic: Bluepill port manipulation - need help understanding registers
- Replies: 3
- Views: 2665
Re: Bluepill port manipulation - need help understanding registers
Starting point would be to look at section 9.2.1 in the reference manual (RM0008). From that you would see that in CRL, there are four bits for each for each GPIO 0 to 7, so each hex digit of the value written to CRL sets the config and mode for one of those GPIO pins. GPIOA->CRL = 0x00033003; Take ...
- Mon Dec 21, 2020 9:45 am
- Forum: IDE's
- Topic: pin addressing
- Replies: 12
- Views: 11615
- Fri Dec 18, 2020 8:20 pm
- Forum: Projects
- Topic: Goertzel for stm32f103 LCD
- Replies: 17
- Views: 10100
- Fri Dec 18, 2020 6:44 pm
- Forum: Projects
- Topic: Goertzel for stm32f103 LCD
- Replies: 17
- Views: 10100
Re: Goertzel for stm32f103 LCD
it is compiling but not working I added LCD, in uno LCD it is alive in stm32 it is dead just displays 0.00 and do on respond to signal on PA6. How are you generating the signal on PA6, and are you sure there is really something to see there? This is the sampling routine in Goertzel.cpp: /* Sample s...
- Thu Dec 17, 2020 7:45 pm
- Forum: General discussion
- Topic: [Solved] Multiple serial port at the same time doesn't work
- Replies: 11
- Views: 11322
Re: Multiple serial port at the same time doesn't work
I use it (Serial2) for my GPS, and I have called it in void setup. For this to work, surely you have to do more than just the Serial2.begin(9600) in setup()? From the TinyGPS++ examples I can find, you would have to execute gps.encode(Serial2.read()) whenever there is Serial2 data available, but th...
- Sat Aug 22, 2020 11:09 pm
- Forum: STM32F1 based boards
- Topic: STM32F103C8T6 + neopixels
- Replies: 9
- Views: 17820
Re: STM32F103C8T6 + neopixels
Have you tried to g**gle stm32 + neopixel + library One of the results: https://github.com/rogerclarkmelbourne/WS2812B_STM32_Libmaple yes i have downloaded this library before and it works, but unfortunatelly uses spi, which in my project is already used by nrf24l01 module. Both cannot work togethe...
- Tue Aug 04, 2020 10:19 pm
- Forum: General discussion
- Topic: Changing PWM duty cycle on BluePill produces wrong output
- Replies: 9
- Views: 11303
Re: Changing PWM duty cycle on BluePill produces wrong output
I started with the example in the GitHub wiki, made the timer variable global, and used it to call setPWM in the loop: They say that great minds think alike – that is exactly what I tried. My equipment does not run to an AVOmeter, but I do have an old analog meter. With 5HZ, and 10% as in the examp...
- Tue Aug 04, 2020 11:14 am
- Forum: General discussion
- Topic: Changing PWM duty cycle on BluePill produces wrong output
- Replies: 9
- Views: 11303
Re: Changing PWM duty cycle on BluePill produces wrong output
I tried it, repeatedly setting the frequency and duty cycle to the same value. If I happen to call setPWM() when the pulse is high, then it goes low for around 35 microseconds. It does not appear to disturb or reset the overall pulse though?? The time of this low glitch seems to be independent of th...
- Tue Jul 14, 2020 7:09 am
- Forum: General discussion
- Topic: How to get pin number based on known timer and known channel?
- Replies: 8
- Views: 6390
Re: How to get pin number based on known timer and known channel?
Well, it should be only match because there is only one pin associated with certain channel. I did test the sketch with serial output, and it worked for various timers and channels. So, if you comment out the “finished = true” you still get the same pin? If I try it on a F103 blue pill board just f...