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.
I don't use C for microcontrollers, but I don't see where you've declared your variables. Make sure they're declared globally so that their values are accessible everywhere.
As FvM said, the IE bit is for enabling interrupts for a specific peripheral. If you don't set the specific IE bit then the interrupt service routine will not be called when that specific interrupt happens.
You have the entire PORTA set to inputs. Do you have pullup resistors on all of those pins? If not, they're floating, which is not good. Unused pins should either be set to output and driven low, or set to input and tied high or low. Most peope opt for setting them to outputs.
What does...
What do you have connected to the COM port? "Enter" is just another character or two. What happens with it depends on how the receiving device is coded to handle it.
Hi nikhilsigma,
You should probably turn off the watchdog timer (WDTE) in your config section. It's enabled by default, so unless you need it and know how to use it it's best to turn it off.
Do you have a hardware debounce circuit on RB5? Switches need to be debounced. It can be done with...
You don't need a pulldown resistor for the transistor base. Pullups/pulldowns are usually used for FETs to prevent a floating condition.
Almost any value is fine for the base resistor, as you just want to minimize current consumption from whatever is sourcing it. Your collector current is...
I don't have any experience with this chip or the application. A quick Google search turned up this, which may be helpful:
https://forum.mikroe.com/viewtopic.php?f=88&t=50719&hilit=client
I hope you figure things out, or someone replies with more knowledge.
I don't know if you also have to enable/disable something...But you're supposed to write to the output LATCH register; the PORT register is for reading.
And according to the datasheet (https://ww1.microchip.com/downloads/en/DeviceDoc/39762f.pdf) PORTA is not intended to drive LEDs. Use PORTB...
Even cheaper on eBay, BangGood, DealExtreme. I would stick with ones that have the Atmel MEGA16U2 or the CH340G interface chip. For USB. There are known issues with fake FTDI chips.
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.