Jan 2, 2015 #1 J jackobian Member level 1 Joined Sep 18, 2011 Messages 37 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 Activity points 1,542 I have pic16f877a, i use mikroc program for code implementation. and xeltek 5000e as a programmer. when i write value such as Code: main() { trisb=0;//port b out out while(1) { portb=0x00001111; } } and measure the value with oscilloscope it always below 0.5v. please help me Last edited by a moderator: Jan 2, 2015
I have pic16f877a, i use mikroc program for code implementation. and xeltek 5000e as a programmer. when i write value such as Code: main() { trisb=0;//port b out out while(1) { portb=0x00001111; } } and measure the value with oscilloscope it always below 0.5v. please help me
Jan 2, 2015 #2 Pulsetronics Member level 3 Joined Oct 31, 2014 Messages 67 Helped 9 Reputation 18 Reaction score 9 Trophy points 8 Location Lagos Activity points 382 My First question is that did your program compile very well? Code: Main(){ TRISB = 0x00; While(1){ PORTB = 0B00001111; } } Secondly did you simulate your project on softwares like Proteus before designing it in real world?.
My First question is that did your program compile very well? Code: Main(){ TRISB = 0x00; While(1){ PORTB = 0B00001111; } } Secondly did you simulate your project on softwares like Proteus before designing it in real world?.
Jan 2, 2015 #3 Easyrider83 Advanced Member level 5 Joined Oct 11, 2011 Messages 1,608 Helped 374 Reputation 748 Reaction score 363 Trophy points 1,363 Location Tallinn, Estonia Activity points 8,575 Should work. Possible schematic or configuration error.
Jan 2, 2015 #4 nagkiller Full Member level 4 Joined Jul 9, 2009 Messages 238 Helped 37 Reputation 74 Reaction score 37 Trophy points 1,308 Location Brazil Activity points 2,703 Maybe is missing the famous MCLR 10K pullup resistor!!! Or oscillator is wrong into the configuration of miKroc (use Ctrl + Shift + E, to see the parameters). Code: void main() { TRISB = 0x00; TRISC = 0x00; PORTB = 0B00001111; PORTC = 0B11110000; while(1) { } } I attach my example using 8MHz crystal... Attachments project.zip 21 KB · Views: 39
Maybe is missing the famous MCLR 10K pullup resistor!!! Or oscillator is wrong into the configuration of miKroc (use Ctrl + Shift + E, to see the parameters). Code: void main() { TRISB = 0x00; TRISC = 0x00; PORTB = 0B00001111; PORTC = 0B11110000; while(1) { } } I attach my example using 8MHz crystal...
Jan 2, 2015 #5 kappa_am Full Member level 6 Joined Jul 16, 2012 Messages 331 Helped 19 Reputation 38 Reaction score 19 Trophy points 1,298 Location Vancouver Activity points 3,859 check your oscillator. I think the oscillator has problem.