??? 01/24/06 20:21 Read: times |
#108222 - Memory Map part 2 Responding to: ???'s previous message |
You do not need the 74HC138 to select your program memory because it is in the program memory space and it is acceded using /PSEN signal.
If you are using the 74HC138 to select the 82C55 and you connect A15 to A, A14 to B, A13 to C,G2A and G2B to gnd, and G1 to Vcc, and you connect Y7 to /CS of the 82C55 then you got the following memory map: A15 -------------- A0 1110 0000 0000 0000 = E000H port A address 1110 0000 0000 0001 = E001H port B address 1110 0000 0000 0010 = E002H port C address 1110 0000 0000 0011 = E003H control address But note that this is taking the don´t care states like 0. Like I told you before, the address F011H correspond with the address of the port B. The control address can be E003H, E007H, E00F or any value that have A15, A14, A13, A1 and A0 to 1. Look at the following table A15 -------------------- A0 111X XXXX XXXX XX00 = port A address 111X XXXX XXXX XX01 = port B address 111X XXXX XXXX XX10 = port C address 111X XXXX XXXX XX11 = control address Please check your connections and calculate the right address. Hope this can help Roberto Muñoz |