beautypg.com

Velleman VM142 User Manual

Page 6

background image

6

Descriptions of the terminal block

BUZZER:

The built-in buzzer with fixed frequency can be activated and deactivated in your program

.

Programming example:

BSF

PORTC,BUZZER

;activate the buzzer

BCF

PORTC,BUZZER

;deactivate the buzzer

Diagnose LED (LD3):

This LED is fixed connected to an I/O of the PIC controller and can be freely programmed.
The built-in LED can be activated as follows:

Programming example:

BSF

PORTA,DIAGLED

;activate the led.

BCF

PORTA,DIAGLED

;activate the led.

6

Descriptions of the terminal block

BUZZER:

The built-in buzzer with fixed frequency can be activated and deactivated in your program

.

Programming example:

BSF

PORTC,BUZZER

;activate the buzzer

BCF

PORTC,BUZZER

;deactivate the buzzer

Diagnose LED (LD3):

This LED is fixed connected to an I/O of the PIC controller and can be freely programmed.
The built-in LED can be activated as follows:

Programming example:

BSF

PORTA,DIAGLED

;activate the led.

BCF

PORTA,DIAGLED

;activate the led.