It is already a programmable state machine with tons of I/O and built in registers. And as mentioned, a CPLD would be even more appropriate since it was designed for things just like this. While I am certain that this could be done in C++ on a fast enough processor with enough I/O, I feel that this is one of those cases where the C++ code would actually be more complicated than it would be in assembly. And all ports are extended by pins with the interval of 2.54mm. Your state machine would regularly capture the contents of the registers of the new RTC over I2C and then present them as addressable registers to the original system. keyestudio UNO with pin headers has the same basic functions as keyestudio UNO R3 BOARD.It is a microcontroller board based on the ATMEGA328P-AU, which has the same function as ATMEGA328P(-PU), fully compatible with ARDUINO UNO REV3. In the meantime, it has 54 digital input/output pins (of which 15 can be used as PWM outputs), 16 analog inputs, 4 channel serial communication ports, a USB connection, 1 ICSP header, and a reset button. Keyestudio MEGA 2560 PRO Development Board (Black and Eco-friendly) 17.47. Keyestudio NANO PLUS Development Board Compatible with Arduino NANO. Keyestudio 3D printer kit for arduino MKS GEN V1.2+2004LCD control+ 5x8825 drive+USB+adaptor,3D Printer kit,3D printer. Keyestudio 8833 Motor Driver Expansion Board PH2.0 USB Cable DC 6-9V For BT Wifi And Servo Drivers. Keyestudio 3D Printer Kit RAMPS 1.4+Mega 2560+5xA4988 motor driver+LCD 12864 Controller. These pins can be configured as digital input pin to read the logic value (0 or 1). Keyestudio MKS BaseV1.2 3D Printer Controller Board (RAMPS 1.4 + Arduino 2560 remix board) 28.00. Since the modern I2C RTC already has all of the features you need (NVRAM, alarms, etc.) your project is more or less to convert the parallel interface of the original interface to I2C. Arduino MEGA has 54 digital input/output pins (of which 15 can be used as PWM outputs). But if using a microcontroller, assembly language would be much better suited than the C++ of the Arduino. For something like this, I would have recommended a CPLD. This plus board consists of 54-channel digital input and output ports, of which 15 pins are served as PWM output, 16 analog inputs, 4 serial communication ports, one 16MHz crystal oscillator, 1 USB port, 1 power socket, 1 ICSP interface and 1 reset button. The original RTC is essentially a state machine that interacts synchronously through registers. Since I was asked to take a look, here is my $.02. Taking Keyestudio LOGO as a reference, toggle the switch to the left for on and right for off.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |