I want to use AT89S51 microcontroller to do a stepper motor control system, P1 P2 port connected to LCD 1602 display module, P0 port connected to the driver chip to drive the motor
Author:Huang Pu Pu Time:2021-07-20 13:31 Browse(446)
lcd
According to my experience, LCD 1602 module should have 4-wire interface and 8-wire interface. Choosing 4-wire interface mode will save I / O resources. In this way, the P1 and P2 ports should be left, which can be used to realize keys, the P0 port is connected to the driver motor chip, and the I / O port allocation should be enough. I hope it's useful for you. Port P0 has no internal pull-up resistor (shared by the lower 8 bits of address and 8 bits of data). If the general IO port needs additional pull-up resistor, port P2 is shared by the upper 8 bits of general IO and address output.

I want to use AT89S51 microcontroller to do a stepper motor control system, P1 P2 port connected to LCD 1602 display module, P0 port connected to the driver chip to drive the motor

Related topics