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 m using 3.3 volts as supply, i searched the web and used the initilisation sequence as the suggested... found 2 configuration and tried thwm but got same result,
I tried writing A on lcd but the state doesnt change at all, i get the below screen everytime. Plz chk my code and let me know...
i m using pic16f877a,
i wrote 9 bit spi but having garbage values on lcd, and i cant send any valueable data to lcd, i m attatching the code to the thread, plz hlp me,
the pin connection are defined in attached file.
thanx in advance
wbr
below is the circuit that i m using, hall effect sensors output pin is connected to porta,0, crystal value is 20mhz
the pic was working f9 bro, i just was getting problem in using the timers, so i made the thread, now trying to make code to count the total distance the bike vl cover plus it...
Bro sorry,the pic i posted is just a simulation pic in proteous just to chk the code, it doesn't need all wires be setup to work properly, i hav already made all connections on breadboard that is my test project right now, i m uaing the lcd in 8bit mode foe now, the pic is 16f877a and 20mhz is...
schematic is same and very simple bro,
sorry the topic went so interesting that i slipped over learning more.. i was facing problem in timers and now i hav working timers..
to measure the distance i m planning to calculate the circumference of the bike tyre first and then divide that area in...
OK, thats awesum, many things clerared in that topic,
now acc. to my code as i m not using any hardware interrupt, to get the cpu execution to the isr address i hav two options only,
1. is that after triggering the ultrasonic sensor i hav to call the timr11 atleast for once so wen ever it rolls...
BRO indeed i m working in a template that was obtained from microchip website, i tried your way too,, means if i place my main code just below org 0 and after that i place my sub routines then the copiler doesnt see the subroutines, perhaps coz the main code ends with command end and compiler...
really very healthy suggessions bro, thans a lot bro,but i m already using these steps
ORG 0
GOTO RESET
but reset starts main code, i ll make other changes as u suggested bro..
- - - Updated - - -
u mean all the routines tht i ll use for interrupts must be written from the address 0x0004...
well thanx for ur humble support brothers... i solved the issue and found the problem and step where i was wrong. i wud love to share my experience about that.
in the starting i have posted the sub that i wrote to initialised and use the timer1, in a single routine i configure the timer1 as...
i m sorry to mix them up, the timer routine i took from the ultra sonic distance meter asm file, in what ever project i need my timer routine to be wroking well, i m using MPASMWIN.exe to compile the .asm files, plz suggest me better tools if i m lacking, but in that compiler i m able to use all...
same delay timer1 routine is used for ultrasonic distance meter, the routine is made to creat 29 microseconds delay, i m calling it for 2 times in isr named as GDP to creat 58 us for sound to get back to the sensor after intracting with obstacle, but it doesnt seems to be working, plz take a...
:-D six digit meter is count the distance that my bike vl cover, total distance... and i ll save tht distance either in eeprom memory or the flash memory, for speed i ll use another part of lcd that vl show the km/hrs meter..., just wanna know that the routine i posted for the timer is correct...
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.