Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
IN ISR TRY TO DO THIS AT END OF YOUR CODE...I HOPE YOU ARE YOU USING UART INTERRUPT IN ISR FUNCTION
RXIF=0; // Clear UART RX Interrupt Flag.
RXIE=0; // Disable UART RX Interrupt
CHECK THIS CODE This code will read in the UART data and store the result
in an array.
unsigned cnt, cnt1;
char...
did you Enable external interrupts INTE from RB0 did you make portb as output...once post your main function so that i can found out error in your code..
- - - Updated - - -
once check your while loop in main function
before making gie =1 reset the external interrupt flag (INTF = 0) and enable the external interrupt(INTE = 1) and then set gie =1
did u do this
- - - Updated - - -
in your isr function check for this
if (INTF) // If the external flag is 1, do .....
{
INTF=0; // Reset the external interrupt flag
I am new to mcu programming....i want to debug my code using breakpoints...can i know what are the rules to be followed for debugging using breakpoints..
From where the breakpoint must start..is it from while loop in main program or at any point we can start?
where shall i need to end the break...
from high voltage mcu tx to low voltage mcu rx, use a simple resistive voltage divider.
low voltage mcu tx connects directly to high voltage mcu rx. my logic is, there is low threshold voltage level for high voltage mcu that might be lower than 1.8v.
THNX FOR YOUR SUGGESTIONS....we have to use...
Thnx for your reply...one more thing i want to clarify one mcu is operating at 1.8v and other mcu at 3.3v..as their is difference in voltage do we need any special ic in our hardware circuit
Hi...i want to communicate usart communication between 2 different microcontrollers...what are the hardware conections we have to give for communicating between 2 different microcontrollers...and how to take care in the software part like baudrate must be same for both controllers...? please...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.