upc eetac_1

Week 10

Week 11: FSM in C and LCD displays

Week 12


Laboratory #11

[P11] The LCD peripheral. Library of specialised functions. LCD_Flag variable.

Examples of digital circuits


Final project P_Ch3 proposals for cooperative group (oral presentation and written documents). 

Let's discuss on how to organise the cooperative group 10 minutes oral presentation and the final written report using a word processor. Each group will be in charge of presenting a different project. Here we'll propose you a list of projects and we'll assign them in class. Selection of projects: 3T1 - 3T12.

You'll produce your oral presentation video in the recording studio available at our CBL library.

Examples o the use of the LCD library:

- Attach an LCD display to your uC application: enhance the Johnson_Counter_mod12 (or other sequential systems) interfacing an LCD display to show ASCII messages.


Demonstrations and experimentation with several circuits developed using CPLD/FPGA/μC. This is the step #5 in the design process: downloading the configuration file into the target chip, whatever it be a PLD or a μC using the corresponding device programmer.


This is the due date for the PLA#3_1.



Lecture #11

[P11] Another example on using the LCD library

[P12] Peripherals: Timer0


--> A good assigment to solve may be: Enhance the 1-digit BCD adder project in P9 so tht the result is represented in the LCD display instead of the 7-segment digits. Which is the variable var_LCD_flag used for?


- Which is the function of a timer/counter?

- Hardware. CLK source, external pin (counter), internal OSC reference (real-time counter --> timer)

- Hardware configuration bits and registers: CLK edge, CLK source, Prescaler selection, TMR0 in 8-bit or 16 bit mode.

- Hardware interrupt TMR0IF and variable var_TMR0_flag.

- Block diagram of the timer/counter: Prescaler (N1) and counter (N2).



Guided activities #11

[P12] Peripherals: Timer0. Programing applications


- How to increase the counting capacity? Software variables like var_Postscaler (N3).

- Example on how to program an application: design a timer for 18.5 s.

1. Specifications.

2.1 hardware planning. Prescaler (N1) , counter (N2), postscaler (N3).  

- Discusion on the limitations of the Timer0. Precision. Time base and time accuracy. Notes.