How to use Interrupt in PIC16F877A in C..??

Status
Not open for further replies.
There is no reason why we can't use TWO ports for data 16 bit data That would speed things up..
 
Please what the problem all rows and portb is connecteda s you said!!
but it is not working!
 
What isn't working? My code on your hardware?... My code wasn't intended for your hard ware.... To run that code you'll need to re wire your rows for every forth row..
 
Yes i have re-wire/updated as you suggested in previous post...
and you were saying of inverting the data in port B...
 
No.. That was in ISIS... The 8x8 matrix needed inverting....

According to the video, it seems to be nearly there... I would just recheck the wiring. the rows need to be like this to the shift registers..

....1...2....3...4... // row 1
....5...6....7...8...
...9...10..11..12..
...13..14..15..16..
..
..
...21..22..23..24.. // row 8
 
Do me a quick schematic and I'll get my code to work on your hardware..
 
I thought so... Mines the other way round.. Scans from left to right... That's why you get reversed characters..
 
Not really... The rows are just pulsed in sequence... Its the shift registers that control the row being updated...

If you write an algorithm that only supplies the correct data for each row pulse... Then your screen refresh routine will be inside the interrupt... And that's not good..
 
Hi,

Scans from left to right... That's why you get reversed characters.
I have done this but the problem is not solved don't know why???

and if we see the fault with the help of ball there are total 6 led for it which like this ' ", don't know whats the problem??
 
Are you using my un-changed code?... What shift registers are you using again?

I want to change my program to suit those shift registers..
 
Are you using my un-changed code?... What shift registers are you using again?

I want to change my program to suit those shift registers..

hi again,

I am using your code and 74164 registers....
 
OK!! I have changed the shift registers to the 74ls164's It works just as good



Check my connections with yours....
 
Hi again,
I am using NPN transistor at port B with sinking that mean it is reversing the signal so, need to be changed by code!
 
Just change a line in the interrupt.

Code:
PORTB = buffer[displayPointer];
to
Code:
PORTB = ~(buffer[displayPointer]);
This will invert the output.
 

I am working on it...
i found that after scanning left to right i found the character mirror..
like this L is coming |- i mean to say on top...
so, the scanning should be from bottom now???
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…