Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

pic c program for johnson counter



#include "C:\Users\spec\Downloads\test.h" 



void main()
{
   int a=0x01;
   setup_adc_ports(NO_ANALOGS);
   setup_adc(ADC_OFF);
   setup_psp(PSP_DISABLED);
   setup_spi(SPI_SS_DISABLED);
   setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
   setup_timer_1(T1_DISABLED);
   setup_timer_2(T2_DISABLED,0,1);
   setup_comparator(NC_NC_NC_NC);
   setup_vref(FALSE);

   // TODO: USER CODE!!

while(1)
{
output_d(a);
delay_ms(100);

rotate_left(&a,1);
a^=01;//remove this line to get a ring counter
}
}
ISIS simulation


This post first appeared on Compizspec.blogspot.com, please read the originial post: here

Share the post

pic c program for johnson counter

×

Subscribe to Compizspec.blogspot.com

Get updates delivered right to your inbox!

Thank you for your subscription

×