LCD not displaying anything in 8051 based project.
I successfully manged to run my project on Proteus, but now when trying to run it actually in real world, the LCD remains blank and nothing appears. I am posting the code and images of my connection,...
View ArticlePIC Comparator problem
I'm programming a pic12f675 as a simple comparator, using mplab xide and xc8 compiler. I made a voltage divider (2.5V) as an external reference, and another divider with a pot to create a voltage range...
View ArticlePickit 2 debugger stuck in delay loop when used to debug PIC16F877A
My pic microcontroller seems to be stuck in a delay loop when i am debugging using a pickit 2 clone which i bought from a local store. When i use the pickit 2 to program the microcontroller, it works...
View ArticleI2C Communication for Honeywell pressure sensor
Hi I am using Honeywell pressure sensor to measure pressure of air in a pipe. for this have to use I2C Communication with pic PIC16F1787 View attachment 147609 Circuit for this is my Circuit is perfect...
View ArticleHow can i generate 4 PWM Signal in Atmega32
As i know that Atmega32 has 4 PWM Pin. I only know how to generating Timer0 Pwm. using following code. void PWM_init() { /*set fast PWM mode with non-inverted output*/ TCCR0 = (1<<WGM00) |...
View ArticleConvert ADC output and send through USB
I bought analog devices 16 bit bipolar ADC evaluation board(AD7606). I want to send the output through USB. If anyone has used Analog Devices ADC board, kindly help me in solving this problem. Regards
View ArticledsPIC30f4013 interrupt priority
I need to set priority level of UART1 interrupt to be higher then timer interrupt. Can anyone tell me how can I set this? Is there any way I can change interrupt priority?
View ArticlePWM for PIC
Hello All, Please I am trying to use PWM with PIC16F877A and after I wrote down the code for using it and compiling i got the error as in the image View attachment 147651 but I don't know what is the...
View ArticleCalculating top value for atmel micro timer
Hi, I am working with at90 micro and was wondering if i could ask for help on calulating top value for a given frequency. Freq = 20khz so Period = 50us does the formula freq=((prescalar/timer freq)*top...
View Article74HC165, parallel to serial data conversion, C Code to read & store the 8-bit...
Hi dear friends, Thanks for providing the opportunity to interact with you experts! Here I want to perform parallel to serial data conversion. Therefore I am using 74HC165, 8-bit parallel-in/serial-out...
View ArticleCreating Phase Correct PWM for stepper motor
#include <avr/io.h> #include <avr/interrupt.h> int main(void) { DDRB = 0xFF; TCCR1A |= 1<<WGM11; TCCR1B |= 1<<WGM12 | 1<<WGM13 | 1<<CS10; TIMSK |= 1<<OCIE1A;...
View ArticleTurn a MIDI TO CV Converter from Linear to Exponential Out!
Hello! So I am in the middle of a home project, where I am trying to build a very simple 5 octave monophonic analogue synthesizer, which is controlled via MIDI. So I have this code from acidbourbon at...
View ArticlePICkit 3 for Programming PIC16F627A
I am starting to learn mplab and PIC micro controller. Do we only need PICkit 3 for programming this micro controller. Are the development boards (mentioned in the link) necessary as well....
View ArticleArduino and DS1307 programming question
I'm still just messing around with this tinyRTC DS1307 learning how it does this and that. My question is: Is it ever permitted to use a "IF" statement like the one below with this RTC library? I...
View ArticleI have GPS data, convert LAT&LON, display on LCD good, but trouble saving values
pic18f4520, mplab xc8. I redid my gps coding and I using an interrupt for each gps receive. My original plan was to convert the data into usable values (googlemap) (29.xxxxxx,-83.xxxxxx) and send sms....
View ArticleGenerate a PWM to start a DC Motor
Hello guys! I need help to drive a DC Motor (by a DMOS Full-Bridge Motor Driver) with PIC18F4585. I'm trying to generate a PWM signal like EN input for Motor Driver. I don't know where i wrong... My...
View ArticleSTM32F0 HAL Pending Interrupt Issue
Curious if there are any STM32 guys using the CubeMX HAL. I'm having an issue that I can work around, but want to know the details of this issue. The part is an STM32F042, using CubeMX ver 4.23, GNU...
View ArticlePID register Locations?
Reading through Picmicro AN937 there is a reference to two PID referenced registers. STATUS 1: pid_stat1/stat2 DATA REGISTER But Cannot find any reference to these registers in any Pic version, in...
View Article