0% found this document useful (0 votes)
48 views2 pages

RF Trans Rac

This code configures the PIC microcontroller ports and enables interrupts on port B. It then enters a infinite loop where it blinks the LEDs on port B by setting the pins high for 1 second and low for 1 second. Any interrupts on port B will be serviced, with the upper nibble of the port B value copied to port D.

Uploaded by

Kumari Mugilan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views2 pages

RF Trans Rac

This code configures the PIC microcontroller ports and enables interrupts on port B. It then enters a infinite loop where it blinks the LEDs on port B by setting the pins high for 1 second and low for 1 second. Any interrupts on port B will be serviced, with the upper nibble of the port B value copied to port D.

Uploaded by

Kumari Mugilan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

#include<pic.

h>

#include "delay.c"

__CONFIG(0x3f72);

void main()

RBPU=0;

TRISB=0xf0;

TRISC=0x0f;

TRISD=0x00;

GIE=1;

RBIE=1;

RBIF=0;

PORTB=0;

PORTD=0;

while(1)

PORTB=0x0f;

DelayMs(250);

DelayMs(250);

DelayMs(250);

DelayMs(250);

PORTB=0x00;
DelayMs(250);

DelayMs(250);

DelayMs(250);

DelayMs(250);

void interrupt sdc_speed()

if(RBIF)

RBIF=0;

PORTD=PORTB;

PORTD>>=4;

You might also like