Inbuilt SPI in PIC16F877A
I want to send data from master to slave over spi protocol. I have been reading datasheet of pic16f877a. I am not sure if I am configuring the spi register correctly or not. I understood that if I want...
View ArticleIs this a misprint - STM32 ARM PROGRAMMING FOR EMBEDDED SYSTEMS
This is a large paperback book that for the most part is quite informative and has a lot of helpful detail. But I'm exploring DMA and found what look like a misprint or coding error - Page 353. In the...
View ArticleMicrochip forum registration woes
Last week I had seen a thread on here (https://forum.allaboutcircuits.com/threads/microchip-forum-need-help-to-contact-microchip-administrator-please.160412/) where some guy asked whether someone here,...
View ArticleSTM32F4 - Writing to various DMA registers has no effect
I'm exploring DMA on a Nucleo board and seeing unexpected behavior. As I step through code I can see that various writes have no effect, i.e.: Code: DMA2->HIFCR = 0x00000F40; DMA2_Stream5->PAR =...
View Articlestm32cubeide c++ led blinking example
I have STM32F407 board I want to start c++ program on it it is very very hard for me to create c++ programming on it Here is my steps Next Next Next Next Next Finish When I click on... stm32cubeide c++...
View ArticleStaggering misprint
After poring over code for DAC/DMA that I'm experimenting with on my Nucleo F446RE board, I discovered an epic error in the book STM32 ARM PROGRAMMING FOR EMBEDDED SYSTEMS. On page 342 is the mapping...
View ArticleHow to configure a chip using UART-USB?
Hi, I am using a USB-UART device (more specifically the Foca v2.2, FT232RT) to configure a Thorlabs chip (MTD415TE temperature controller), but I have no idea how do it. The chip's datasheet says to...
View ArticleWhat are the available MCU Programming Frameworks which does not require...
When I was in Academics/collage in 2007, I still remember Microsoft at that time has a framework used to code MCU using C or C# code, it was very easy to understand and write but I believe that...
View ArticleRe tuning the Pickit2
I much prefer the Pickit2 over the ver3. To that end, I came across this interesting link to expand on the use of the 2. Anyone tried it?...
View ArticlePICKIT2 problem "Verification Fail"
Hello there! I try to find fans of PIC-micros and Pickit2. I have some problem with my clone Pickit2. I have also original PICKIT2 and PICKIT3 (because some PICs do not program any more wirh PICKIT2)....
View ArticleI fried a Raspberry Pis and I have no idea why. Please help me understand.
Please refer to the picture attached. When the switch closes the circuit, the buck converter at the bottom of the image turns on (as expected) and the code I have running in the Raspberry Pi detects a...
View ArticleAT89c51 GPIO interfacing
Hi there, I have just read the theory about internal architecture of 8051 I/O ports. According to theory P1 to P3 should be HIGH if they are to be used as input ports.Because if PORTS are LOW then the...
View ArticleWhat kind of microcontroller should I get?
Hey guys, im doing a project, making a tennis sensor which detects the speed of the racket and maybe the location of where the ball hit the string bed of the racket. Im planning on sending the data...
View ArticleHow to debug embedded code from starting to find problem
I am trying to understand about the debugging process, how the problem can be detected by debugging the code. For example, let me talk about the code below. C: #include <htc.h> #define _XTAL_FREQ...
View ArticleUnused variable when it is used as the return value
[Arduino] The function below generates a warning "warning: variable 'OK' set but not used ". It is only a warning but I would like to understand why, and to eliminate the warning if possible. Code:...
View ArticleUnused variable when it is used as the return value [Solved]
[Arduino] The function below generates a warning "warning: variable 'OK' set but not used ". It is only a warning but I would like to understand why, and to eliminate the warning if possible. Code:...
View ArticleReading 4-20ma signal on arduino
Hi, I want to read a 4-20 mA analog signal from a 24V flowmeter. I've read the simplest way is to convert it into 1-5V signal using a 250 ohm resistor. The thing is I want my reading to be precise so...
View ArticleArduino PWM signal acquisition dubt
I'm doing a little project in order to learn to use Arduino. In the attached image it's shown the circuit. 3 phototransistors with 3 colored filters let a RGB LED shine accordingly to che color of the...
View ArticleControlling AC air Pump with PWM
Salutations to all! I have a 220V 0.013Amp electromagnetic AC air pump similar to the one in the link. 1)Is it possible to control the outflow of the air pump through PWM ? Slow and fast? 2) If yes...
View ArticleRemote control by location (PIC in Oshonsoft)
I'm making a couple of PCBs BASE/TRANSMITTER and REMOTE/MODEL RECEIVER using surface mount components, and PICs, for use as remote control by location (3D). Remote control by location, is when a...
View Article