??? 02/01/06 18:21 Modified: 02/01/06 18:23 Read: times |
#108913 - The code is irrelevant, that may and may Responding to: ???'s previous message |
The code is irrelevant, that is not your primary problem.
If you had taken the time to read datasheets about timing you would not have had this problem. First you use 8255, the oldest, slowest device you could find - did you buy it in an antique shop? Then you choose f226, a very modern very fast derivative for your processor. Talk about a mismatch. The 226 being a one clocker makes it an extreme mismatch to the antique. If you insist on using the antique SLOW DOWN you need to use maximum xdata access stretch and a 4 MHz or less crystal. Another issue the antique is a 5V device, the f226 is a 3V3 device and if you do not insert e.g. a 74lvc4245 between them you are likely to get risetime problems. So, the speed is a total mismatch, the voltage levels are a total mismatch, what were you thinking? Erik |