Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

Help needed! Data transfer between PIC & CS8900

Status
Not open for further replies.

kyokusanagi

Newbie level 4
Joined
Nov 19, 2004
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
79
In 8-bit mode, I knew that the sequence to write data to CS8900A in I/O Space Mode (default I/0 Base Address) is: write 1st byte to 300h, 2nd byte to 301h, 3rd byte to 300h, 4th byte to 301h, and so on. This operation sequence is applied to read operation too. What if 16-bit mode? is the sequence like: 1st word to 300h, 2nd word to 302h, 3rd word to 300h, 4th word to 302h, and so on...??

The way my program sequence is as follows:
-Address Bus set to 300h.
-write Lower Order of word1 to Data Bus.
-turn IOW (I/O Write)pin active.
-turn IOW pin inactive.
-change Address Bus to 302h.
-write Higher Order of word1 to Data Bus.
-turn IOW pin active.
-turn IOW inactive.
-change Address Bus to 300h.
-write Lower Order of word2 to Data Bus.
-turn IOW pin active.
so on, and so on.....

Is the my sequence correct?? I do perform the same sequence for read operation too. I turn the IOW pin active and inactive every now and then I shift from one address location to another. I wonder if I am wrong...

Can any1 plz brief me the correct sequence to transfer data between my PIC18F452 uC and the CS8900A in 16-bit mode? A brief step-by-step shall help me, and it would be much appreciated. Because I'm very confused now. Thanks every1 in advance.
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top