Assembly university exercises with arduino
$10-30 USD
Pagado a la entrega
Part 6 – Using the 7-segment display To write to the 7-segment displays, look at the schematic of the Arduino module.
You must send 2 bytes through the serial input of the first byte of the 74HC595. The first byte is the 7-segment code to be displayed (active low), the second byte defines which digit will display the value sent in the first byte. (Active high). To send a byte, write a SendByte function that receives a byte and sends the 8 bits of the byte to the input of the 74HC595 (serial data in). For each bit present in this input, the Shift_Clock must be set to 1 and returned to 0. This must be repeated 8 times. Once the 2 bytes have been sent, the Latch_Clock must be set to 1 and returned to 0, so that the value sent in the first byte must be displayed in the selected digit.
Insert 2 nops between the rise and fall of each clock to avoid the pulse being too short.
Look at the following instructions that may be useful: rol , ror, brcc, brcs, cbi, sbi.
All the above code should be encapsulated as a subroutine called send_digit that receives the data (7-segment code) and the digit [1-4] in which we want it to be displayed.
Remember to preserve the temporary registers using (push / pop) Microcontrollers Part 7 – Refreshing the 7-segment display send_digit should be called four times repeatedly: loop: send_digit(DIGIT1,VALUE) delay(2msec) send_digit(DIGIT2,VALUE) delay(2msec) send_digit(DIGIT1,VALUE) delay(2msec) send_digit(DIGIT2,VALUE) delay(2msec) JMP loop Part 8 – Printing a value on the seven-segment display The idea is to implement a binary counter that increments approximately every 0.5. The counter value must be displayed on the 7-segment display. When implementing the counter, keep in mind that the display can represent numbers from 0 to 9999.
Nº del proyecto: #38720218
Sobre el proyecto
5 freelancers están ofertando un promedio de $67 por este trabajo
Hello, I just read your description and am interested in your project. I am an expert in Arduino and have also worked on certain projects. If you need quality work then feel free to contact me. Thanks
¡Hola!¿Cómo estas? Mi nombre es Exequiel, soy ingeniero electrónico. Puedo ayudarte con tu proyecto, entiendo que hay que escribir las rutinas muestren los dígitos de un display 4x 7-segmentos en ensamblador para un ar Más
Hi, I am an experienced Mechatronics engineer with expertise in arduino uno, esp 32, and other embedded devices. I am interested to work on this task. please feel free to contact. Thanks