Книга: Advanced PIC Microcontroller Projects in C

Project PDL

Project PDL

The PDL of the project is shown in Figure 6.40. At the beginning of the program PORTC is configured as output and PORTA is configured as input. Then the LCD and the A/D converter are configured. The program then enters an endless loop where analog input voltage is converted to digital and displayed on the LCD. The process is repeated every second.

START
 Configure PORTC as outputs
 Configure PORTA as input
 Configure the LCD
 Configure the A/D converter
 DO FOREVER
  Read analog data (voltage) from channel 0
  Format the data
  Display the data (voltage)
  Wait one second
 ENDDO
END


Figure 6.40: PDL of the project

Оглавление книги


Генерация: 0.031. Запросов К БД/Cache: 0 / 0
поделиться
Вверх Вниз