Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 286188

8-Bit microcontroller from microchip

1 vote

Why my LCD not display anything?

As mentioned by brhans, the Ms delay only reading integer number. After I change the delay to integer number, the display working correctly.
chuackt's user avatar
  • 609
0 votes
1 answer
153 views

Why my LCD not display anything?

This is my PIC circuit connection in Proteus to the LCD display and everything work fine in simulation. However, in practice, my LCD does not display even the very first line "AC Wattmeter" in the "vo …
chuackt's user avatar
  • 609
0 votes
1 answer
88 views

Does interrupt service routine in PIC16F877A work with other self-defined variables?

On internet can seen countless simple example like the one below void __interrupt() isr() { if(TMR1IF) {Do something} } But does it work on self-defined variables? As an example, define a bool …
chuackt's user avatar
  • 609
0 votes
1 answer
167 views

Why does my ADC reading not increase when the supply voltage decreases?

I am using a 10 bit ADC and 5V supply, so resolution is \$\frac{5}{1023}\$. I decreased my voltage supply to 4V, the resolution now is \$\frac{4}{1023}\$ For both cases, I am reading a constant value …
chuackt's user avatar
  • 609
4 votes
2 answers
882 views

Why doesn't the switch command in this code work?

I want to create a clock using a timer (TMR2) to do the calculation and display current time. I have a problem dealing with the switch statement and couldn’t identify where the problem is. When I run …
chuackt's user avatar
  • 609
-1 votes
2 answers
328 views

How to display my date in the 2nd line of the LCD?

Below are the codes I using to display dates and times and basically I used the function "write(hr1,hr0,min1,min0,sec1,sec0);" to display the time and "day_compute(day);" to display what the day for t …
chuackt's user avatar
  • 609
0 votes

How to display my date in the 2nd line of the LCD?

Based on the explanation given by Tony, I understood the command line and found my mistake already. My mistake is in the void initialize() command originally I using void initialize() { PORTD=0x00 …
chuackt's user avatar
  • 609
0 votes
2 answers
102 views

Why my timer1 not working?

My purpose is to measure phase angle between 2 square wave as below(yellow represent voltage ZCD and blue represent current ZCD passing through ACS712 hall effect current sensor) Below is my circuit …
chuackt's user avatar
  • 609
0 votes
1 answer
182 views

Is my ACS712 sensor showing normal characteristic?

I bought a new ACS712 current sensor. VIOUT to ground is 2.560 V under no load conditions. This is very accurate as my supply is 5.12 V. I plug in an old fluorescent tube that needs a ballast and sta …
chuackt's user avatar
  • 609
1 vote
Accepted

Is my ACS712 sensor showing normal characteristic?

I considered suggestion above that current sensor may have experience interference from nearby magnetic field. Apart from buying the shielding for testing purpose, I using a cheap solution like emf de …
chuackt's user avatar
  • 609