No changes between revisions
/Designs/Measuring_instruments/GM_counter/SW/PIC16F887/main.bak
0,0 → 1,241
#include ".\main.h"
 
#define LED1 PIN_C6 //CHANGE PIN_XX TO YOUR LED PIN NUMBER, EX: PIN_A5
#define LED2 PIN_C5 //CHANGE PIN_XX TO YOUR LED PIN NUMBER, EX: PIN_A5
#define LED3 PIN_C4 // pulse detect
#define LED4 PIN_D3 //CHANGE PIN_XX TO YOUR LED PIN NUMBER
 
#define S1 PIN_C2 // raw up
#define S2 PIN_C3 // raw down
#define S3 PIN_D0 // fine up
#define S4 PIN_D1 // fine down
#define S5 PIN_B1 // time setup
#define S6 PIN_B2 // treshold setup
 
#define BEEP PIN_D2 //piezo beeper
 
#define LCD_ENABLE_PIN PIN_E0 ////
#define LCD_RS_PIN PIN_E1 ////
#define LCD_RW_PIN PIN_E2 ////
#define LCD_DATA4 PIN_D4 ////
#define LCD_DATA5 PIN_D5 ////
#define LCD_DATA6 PIN_D6 ////
#define LCD_DATA7 PIN_D7
#include <lcd.c>
 
 
unsigned int32 pulse_count=0;
unsigned int16 overflow_count=0;
unsigned int16 time_overflow_count=0;
 
 
#int_RTCC
void RTCC_isr(void)
{
time_overflow_count++;
}
 
#int_TIMER1
void TIMER1_isr(void)
{
overflow_count++;
output_toggle(LED3);
output_toggle(BEEP);
}
 
void sound_beep( unsigned int lenght, int16 frequency)
{
unsigned int i;
for(i=0;i<=lenght;i++)
{
output_toggle(BEEP);
delay_us(1/frequency);
}
}
 
#define TRESHOLD_setup 1
#define INTERVAL_setup 0
 
 
void main()
{
unsigned int16 integration_time=60;
unsigned int16 time;
unsigned int16 last_timer; // promena pro praskani
unsigned int1 button_press,setup_mode=INTERVAL_setup; // semafor pro cteni tlacitek
unsigned int16 measurement_number=0;
 
setup_adc_ports(sAN0|VSS_VDD);
setup_adc(ADC_CLOCK_DIV_32);
setup_spi(SPI_SS_DISABLED);
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_256);
setup_timer_1(T1_EXTERNAL|T1_DIV_BY_1);
setup_timer_2(T2_DISABLED,0,1);
setup_ccp1(CCP_PWM);
setup_ccp2(CCP_PWM);
setup_oscillator(OSC_8MHZ);
 
set_pwm1_duty(0);
set_pwm2_duty(0);
 
output_high(LED1);
output_high(LED2);
output_high(LED3);
output_high(LED4);
output_low(BEEP);
 
setup_comparator(CP2_A0_VREF|CP2_OUT_ON_A5); // sets two comparators(A1 and VR and A2 as the output)
setup_vref(VREF_HIGH|6); //sets 3.6(vdd *value/32 +vdd/4) if vdd is 5.0V
enable_interrupts(INT_COMP); //enables the comparator interrupt
enable_interrupts(INT_RTCC);
enable_interrupts(INT_TIMER1);
enable_interrupts(INT_TIMER2);
enable_interrupts(GLOBAL);
lcd_init();
 
lcd_putc("\fGM counter V1.0 \n 2013 MLAB");
printf("Geiger-Muller Counter V1.0 \r\n");
printf("(c) 2013 MLAB and UST.cz \r\n");
Delay_ms(1000);
lcd_putc("\f");
printf("\r\n");
set_timer1(0);
 
lcd_gotoxy(1,1); // vypsani hodnoty count, abz byla na LCD hned od zapnuti
printf(lcd_putc,"Count:%lu ",pulse_count);
 
while(true)
{
pulse_count = get_timer1() + (0xffff * overflow_count); // compute pulse count
time = integration_time + 1 - (time_overflow_count * 0.0327); // compute time interval
if(get_timer1() != last_timer) // timer count increment detection
{
output_toggle(BEEP);
delay_ms(1);
output_toggle(BEEP);
output_toggle(LED3);
last_timer=get_timer1();
lcd_gotoxy(1,1); // prepsani dat na displeje
printf(lcd_putc,"Count:%lu ",pulse_count);
}
lcd_gotoxy(1,2);
printf(lcd_putc,"T:%lu ",time);
lcd_gotoxy(9,2);
printf(lcd_putc,"I:%lu ", integration_time);
 
if(time == 0) // po uplynuti mereneho intervalu vypis na seriovku
{
set_timer0(0);
time_overflow_count=0;
sound_beep(1000,700);
printf("$GMC1.0 %lu %lu %lu \r\n", measurement_number, integration_time, pulse_count);
set_timer1(0);
overflow_count=0;
measurement_number++;
}
 
if(button_press==false ) // tlacitka se ctou znovu pouze pokud v redchozim cyklu nebyla zmacknuta.
{
if(!input(S1))
{
delay_ms(20);
if(!input(S1))
{
button_press=true;
if(time_setup==TRUE)
{
sound_beep(100,700);
if(integration_time < 0xfffa ) integration_time+=5;
}
}
}
 
if(!input(S2))
{
delay_ms(20);
if(!input(S2))
{
button_press=true;
if(time_setup==TRUE)
{
sound_beep(100,600);
if(integration_time > 0x0005 ) integration_time-=5;
 
set_timer0(0); // vynulovani pocitadel, kdyz uzivatel sahne na tlacitka
time_overflow_count=0;
set_timer1(0);
overflow_count=0;
}
}
}
 
if(!input(S3))
{
delay_ms(20);
if(!input(S3))
{
button_press=true;
if(time_setup==TRUE)
{
sound_beep(100,500);
if(integration_time < 0xffff ) integration_time++;
}
}
}
 
if(!input(S4))
{
delay_ms(20);
if(!input(S4))
{
button_press=true;
switch (setup_mode)
{
case INTERVAL_setup:
sound_beep(100,400);
if(integration_time > 0x0001 ) integration_time--;
 
set_timer0(0); // vynulovani pocitadel, kdyz uzivatel sahne na tlacitka
time_overflow_count=0;
set_timer1(0);
overflow_count=0;
break;
}
}
}
if(!input(S5)) // prepnuti na nastavovani casu
{
delay_ms(20);
if(!input(S5))
{
button_press=true;
sound_beep(100,800);
setup_mode=INTERVAL_setup;
}
}
if(!input(S6)) // prepnuti na nastavovani napeti
{
delay_ms(20);
if(!input(S6))
{
button_press=true;
sound_beep(100,800);
setup_mode=TRESHOLD_setup;
}
}
}
if ( input(S1) && input(S2) && input(S3) && input(S4) && input(S5) && input(S6)) // detekce pustenych tlacitek
{
button_press=false;
}
}
}
/Designs/Measuring_instruments/GM_counter/SW/PIC16F887/main.c
0,0 → 1,268
#include ".\main.h"
 
#define LED1 PIN_C6 //CHANGE PIN_XX TO YOUR LED PIN NUMBER, EX: PIN_A5
#define LED2 PIN_C5 //CHANGE PIN_XX TO YOUR LED PIN NUMBER, EX: PIN_A5
#define LED3 PIN_C4 // pulse detect
#define LED4 PIN_D3 //CHANGE PIN_XX TO YOUR LED PIN NUMBER
 
#define S1 PIN_C2 // raw up
#define S2 PIN_C3 // raw down
#define S3 PIN_D0 // fine up
#define S4 PIN_D1 // fine down
#define S5 PIN_B1 // time setup
#define S6 PIN_B2 // treshold setup
 
#define BEEP PIN_D2 //piezo beeper
 
#define LCD_ENABLE_PIN PIN_E0 ////
#define LCD_RS_PIN PIN_E1 ////
#define LCD_RW_PIN PIN_E2 ////
#define LCD_DATA4 PIN_D4 ////
#define LCD_DATA5 PIN_D5 ////
#define LCD_DATA6 PIN_D6 ////
#define LCD_DATA7 PIN_D7
#include <lcd.c>
 
 
unsigned int32 pulse_count=0;
unsigned int16 overflow_count=0;
unsigned int16 time_overflow_count=0;
 
 
#int_RTCC
void RTCC_isr(void)
{
time_overflow_count++;
}
 
#int_TIMER1
void TIMER1_isr(void)
{
overflow_count++;
output_toggle(LED3);
output_toggle(BEEP);
}
 
void sound_beep( unsigned int lenght, int16 frequency)
{
unsigned int i;
for(i=0;i<=lenght;i++)
{
output_toggle(BEEP);
delay_us(1/frequency);
}
}
 
#define TRESHOLD_setup 1
#define INTERVAL_setup 0
 
 
void main()
{
unsigned int16 integration_time=60;
unsigned int16 time;
unsigned int16 last_timer; // promena pro praskani
unsigned int1 button_press,setup_mode=INTERVAL_setup; // semafor pro cteni tlacitek
unsigned int16 measurement_number=0;
unsigned int8 treshold=6;
 
setup_adc_ports(sAN0|VSS_VDD);
setup_adc(ADC_CLOCK_DIV_32);
setup_spi(SPI_SS_DISABLED);
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_256);
setup_timer_1(T1_EXTERNAL|T1_DIV_BY_1);
setup_timer_2(T2_DISABLED,0,1);
setup_ccp1(CCP_PWM);
setup_ccp2(CCP_PWM);
setup_oscillator(OSC_8MHZ);
 
set_pwm1_duty(0);
set_pwm2_duty(0);
 
output_high(LED1);
output_high(LED2);
output_high(LED3);
output_high(LED4);
output_low(BEEP);
 
setup_comparator(CP2_A0_VREF|CP2_OUT_ON_A5); // sets two comparators(A1 and VR and A2 as the output)
setup_vref(VREF_HIGH|treshold); //sets 3.6(vdd *value/32 +vdd/4) if vdd is 5.0V
enable_interrupts(INT_COMP); //enables the comparator interrupt
enable_interrupts(INT_RTCC);
enable_interrupts(INT_TIMER1);
enable_interrupts(INT_TIMER2);
enable_interrupts(GLOBAL);
lcd_init();
 
lcd_putc("\fGM counter V1.0 \n 2013 MLAB");
printf("Geiger-Muller Counter V1.0 \r\n");
printf("(c) 2013 MLAB and UST.cz \r\n");
Delay_ms(1000);
lcd_putc("\f");
printf("\r\n");
set_timer1(0);
 
lcd_gotoxy(1,1); // vypsani hodnoty count, abz byla na LCD hned od zapnuti
printf(lcd_putc,"Count:%lu ",pulse_count);
 
while(true)
{
pulse_count = get_timer1() + (0xffff * overflow_count); // compute pulse count
time = integration_time + 1 - (time_overflow_count * 0.0327); // compute time interval
if(get_timer1() != last_timer) // timer count increment detection
{
output_toggle(BEEP);
delay_ms(1);
output_toggle(BEEP);
output_toggle(LED3);
last_timer=get_timer1();
lcd_gotoxy(1,1); // prepsani dat na displeje
printf(lcd_putc,"Count:%lu ",pulse_count);
}
lcd_gotoxy(1,2);
printf(lcd_putc,"T:%3lu I:%3lu U:%2u ",time,integration_time,treshold);
// printf(lcd_putc,"I:%4lu ", integration_time);
 
if(time == 0) // po uplynuti mereneho intervalu vypis na seriovku
{
set_timer0(0);
time_overflow_count=0;
sound_beep(1000,700);
printf("$GMC1.0 %lu %lu %lu \r\n", measurement_number, integration_time, pulse_count);
set_timer1(0);
overflow_count=0;
measurement_number++;
}
 
if(button_press==false ) // tlacitka se ctou znovu pouze pokud v redchozim cyklu nebyla zmacknuta.
{
if(!input(S1))
{
delay_ms(20);
if(!input(S1))
{
button_press=true;
sound_beep(100,700);
switch (setup_mode)
{
case INTERVAL_setup:
if(integration_time < 0xfffa ) integration_time+=5;
break;
case TRESHOLD_setup:
if(treshold < 0x0a ) treshold +=5;
setup_vref(VREF_HIGH|treshold); //sets 3.6(vdd *value/32 +vdd/4) if vdd is 5.0V
break;
}
}
}
 
if(!input(S2))
{
delay_ms(20);
if(!input(S2))
{
button_press=true;
sound_beep(100,600);
switch (setup_mode)
{
case INTERVAL_setup:
if(integration_time > 0x0005 ) integration_time-=5;
set_timer0(0); // vynulovani pocitadel, kdyz uzivatel sahne na tlacitka
time_overflow_count=0;
set_timer1(0);
overflow_count=0;
break;
case TRESHOLD_setup:
if(treshold > 0x05 ) treshold +=5;
setup_vref(VREF_HIGH|treshold); //sets 3.6(vdd *value/32 +vdd/4) if vdd is 5.0V
break;
}
}
}
 
if(!input(S3))
{
delay_ms(20);
if(!input(S3))
{
button_press=true;
sound_beep(100,500);
switch (setup_mode)
{
case INTERVAL_setup:
if(integration_time < 0xffff ) integration_time++;
break;
 
case TRESHOLD_setup:
if(treshold < 0x0F ) treshold ++;
setup_vref(VREF_HIGH|treshold); //sets 3.6(vdd *value/32 +vdd/4) if vdd is 5.0V
break;
}
}
}
 
if(!input(S4))
{
delay_ms(20);
if(!input(S4))
{
button_press=true;
sound_beep(100,400);
switch (setup_mode)
{
case INTERVAL_setup:
if(integration_time > 0x0001 ) integration_time--;
 
set_timer0(0); // vynulovani pocitadel, kdyz uzivatel sahne na tlacitka
time_overflow_count=0;
set_timer1(0);
overflow_count=0;
break;
case TRESHOLD_setup:
if(treshold > 0x01 ) treshold--;
setup_vref(VREF_HIGH|treshold); //sets 3.6(vdd *value/32 +vdd/4) if vdd is 5.0V
break;
}
}
}
if(!input(S5)) // prepnuti na nastavovani casu
{
delay_ms(20);
if(!input(S5))
{
button_press=true;
sound_beep(100,800);
setup_mode=INTERVAL_setup;
lcd_gotoxy(16,1); // prepsani dat na displeje
printf(lcd_putc,"I");
}
}
if(!input(S6)) // prepnuti na nastavovani napeti
{
delay_ms(20);
if(!input(S6))
{
button_press=true;
sound_beep(100,800);
setup_mode=TRESHOLD_setup;
lcd_gotoxy(16,1); // prepsani dat na displeje
printf(lcd_putc,"U");
}
}
}
if ( input(S1) && input(S2) && input(S3) && input(S4) && input(S5) && input(S6)) // detekce pustenych tlacitek
{
button_press=false;
}
}
}
/Designs/Measuring_instruments/GM_counter/SW/PIC16F887/main.cof
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/Designs/Measuring_instruments/GM_counter/SW/PIC16F887/main.err
0,0 → 1,2
Memory usage: ROM=37% RAM=10% - 15%
0 Errors, 0 Warnings.
/Designs/Measuring_instruments/GM_counter/SW/PIC16F887/main.esym
0,0 → 1,500
D G "__PCM__" 0 270 ""4.106""
D G "__DEVICE__" 0 270 "887"
D G "__DATE__" 0 270 ""23-V-13""
D G "__TIME__" 0 270 ""16:19:42"" "Standard Header file for the PIC16F887 device ////////////////"
d G "PIN_A0" 2 20 "40"
d G "PIN_A1" 2 21 "41"
d G "PIN_A2" 2 22 "42"
d G "PIN_A3" 2 23 "43"
d G "PIN_A4" 2 24 "44"
d G "PIN_A5" 2 25 "45"
d G "PIN_A6" 2 26 "46"
d G "PIN_A7" 2 27 "47"
d G "PIN_B0" 2 29 "48"
d G "PIN_B1" 2 30 "49"
d G "PIN_B2" 2 31 "50"
d G "PIN_B3" 2 32 "51"
d G "PIN_B4" 2 33 "52"
d G "PIN_B5" 2 34 "53"
d G "PIN_B6" 2 35 "54"
d G "PIN_B7" 2 36 "55"
d G "PIN_C0" 2 38 "56"
d G "PIN_C1" 2 39 "57"
d G "PIN_C2" 2 40 "58"
d G "PIN_C3" 2 41 "59"
d G "PIN_C4" 2 42 "60"
d G "PIN_C5" 2 43 "61"
d G "PIN_C6" 2 44 "62"
d G "PIN_C7" 2 45 "63"
d G "PIN_D0" 2 47 "64"
d G "PIN_D1" 2 48 "65"
d G "PIN_D2" 2 49 "66"
d G "PIN_D3" 2 50 "67"
d G "PIN_D4" 2 51 "68"
d G "PIN_D5" 2 52 "69"
d G "PIN_D6" 2 53 "70"
d G "PIN_D7" 2 54 "71"
d G "PIN_E0" 2 56 "72"
d G "PIN_E1" 2 57 "73"
d G "PIN_E2" 2 58 "74"
d G "PIN_E3" 2 59 "75"
d G "FALSE" 2 62 "0"
d G "TRUE" 2 63 "1"
d G "BYTE" 2 65 "int8"
d G "BOOLEAN" 2 66 "int1"
d G "getc" 2 68 "getch"
d G "fgetc" 2 69 "getch"
d G "getchar" 2 70 "getch"
d G "putc" 2 71 "putchar"
d G "fputc" 2 72 "putchar"
d G "fgets" 2 73 "gets"
d G "fputs" 2 74 "puts"
d G "WDT_FROM_SLEEP" 2 79 "3"
d G "WDT_TIMEOUT" 2 80 "11"
d G "MCLR_FROM_SLEEP" 2 81 "19"
d G "MCLR_FROM_RUN" 2 82 "27"
d G "NORMAL_POWER_UP" 2 83 "25"
d G "BROWNOUT_RESTART" 2 84 "26"
d G "T0_INTERNAL" 2 91 "0"
d G "T0_EXT_L_TO_H" 2 92 "32"
d G "T0_EXT_H_TO_L" 2 93 "48"
d G "T0_DIV_1" 2 95 "8"
d G "T0_DIV_2" 2 96 "0"
d G "T0_DIV_4" 2 97 "1"
d G "T0_DIV_8" 2 98 "2"
d G "T0_DIV_16" 2 99 "3"
d G "T0_DIV_32" 2 100 "4"
d G "T0_DIV_64" 2 101 "5"
d G "T0_DIV_128" 2 102 "6"
d G "T0_DIV_256" 2 103 "7"
d G "T0_8_BIT" 2 106 "0"
d G "RTCC_INTERNAL" 2 108 "0" "The following are provided for compatibility"
d G "RTCC_EXT_L_TO_H" 2 109 "32" "with older compiler versions"
d G "RTCC_EXT_H_TO_L" 2 110 "48"
d G "RTCC_DIV_1" 2 111 "8"
d G "RTCC_DIV_2" 2 112 "0"
d G "RTCC_DIV_4" 2 113 "1"
d G "RTCC_DIV_8" 2 114 "2"
d G "RTCC_DIV_16" 2 115 "3"
d G "RTCC_DIV_32" 2 116 "4"
d G "RTCC_DIV_64" 2 117 "5"
d G "RTCC_DIV_128" 2 118 "6"
d G "RTCC_DIV_256" 2 119 "7"
d G "RTCC_8_BIT" 2 120 "0"
d G "WDT_18MS" 2 132 "8"
d G "WDT_36MS" 2 133 "9"
d G "WDT_72MS" 2 134 "10"
d G "WDT_144MS" 2 135 "11"
d G "WDT_288MS" 2 136 "12"
d G "WDT_576MS" 2 137 "13"
d G "WDT_1152MS" 2 138 "14"
d G "WDT_2304MS" 2 139 "15"
d G "WDT_ON" 2 143 "0x4100"
d G "WDT_OFF" 2 144 "0"
d G "WDT_DIV_16" 2 145 "0x100"
d G "WDT_DIV_8" 2 146 "0x300"
d G "WDT_DIV_4" 2 147 "0x500"
d G "WDT_DIV_2" 2 148 "0x700"
d G "WDT_TIMES_1" 2 149 "0x900" "Default"
d G "WDT_TIMES_2" 2 150 "0xB00"
d G "WDT_TIMES_4" 2 151 "0xD00"
d G "WDT_TIMES_8" 2 152 "0xF00"
d G "WDT_TIMES_16" 2 153 "0x1100"
d G "WDT_TIMES_32" 2 154 "0x1300"
d G "WDT_TIMES_64" 2 155 "0x1500"
d G "WDT_TIMES_128" 2 156 "0x1700"
d G "T1_DISABLED" 2 162 "0"
d G "T1_INTERNAL" 2 163 "5"
d G "T1_EXTERNAL" 2 164 "7"
d G "T1_EXTERNAL_SYNC" 2 165 "3"
d G "T1_CLK_OUT" 2 167 "8"
d G "T1_DIV_BY_1" 2 169 "0"
d G "T1_DIV_BY_2" 2 170 "0x10"
d G "T1_DIV_BY_4" 2 171 "0x20"
d G "T1_DIV_BY_8" 2 172 "0x30"
d G "T1_GATE" 2 174 "0x40"
d G "T1_GATE_INVERTED" 2 175 "0xC0"
d G "T2_DISABLED" 2 180 "0"
d G "T2_DIV_BY_1" 2 181 "4"
d G "T2_DIV_BY_4" 2 182 "5"
d G "T2_DIV_BY_16" 2 183 "6"
d G "CCP_OFF" 2 189 "0"
d G "CCP_CAPTURE_FE" 2 190 "4"
d G "CCP_CAPTURE_RE" 2 191 "5"
d G "CCP_CAPTURE_DIV_4" 2 192 "6"
d G "CCP_CAPTURE_DIV_16" 2 193 "7"
d G "CCP_COMPARE_SET_ON_MATCH" 2 194 "8"
d G "CCP_COMPARE_CLR_ON_MATCH" 2 195 "9"
d G "CCP_COMPARE_INT" 2 196 "0xA"
d G "CCP_COMPARE_RESET_TIMER" 2 197 "0xB"
d G "CCP_PWM" 2 198 "0xC"
d G "CCP_PWM_PLUS_1" 2 199 "0x1c"
d G "CCP_PWM_PLUS_2" 2 200 "0x2c"
d G "CCP_PWM_PLUS_3" 2 201 "0x3c"
d G "CCP_PWM_H_H" 2 206 "0x0c"
d G "CCP_PWM_H_L" 2 207 "0x0d"
d G "CCP_PWM_L_H" 2 208 "0x0e"
d G "CCP_PWM_L_L" 2 209 "0x0f"
d G "CCP_PWM_FULL_BRIDGE" 2 211 "0x40"
d G "CCP_PWM_FULL_BRIDGE_REV" 2 212 "0xC0"
d G "CCP_PWM_HALF_BRIDGE" 2 213 "0x80"
d G "CCP_SHUTDOWN_ON_COMP1" 2 215 "0x100000"
d G "CCP_SHUTDOWN_ON_COMP2" 2 216 "0x200000"
d G "CCP_SHUTDOWN_ON_COMP" 2 217 "0x300000"
d G "CCP_SHUTDOWN_ON_INT0" 2 218 "0x400000"
d G "CCP_SHUTDOWN_ON_COMP1_INT0" 2 219 "0x500000"
d G "CCP_SHUTDOWN_ON_COMP2_INT0" 2 220 "0x600000"
d G "CCP_SHUTDOWN_ON_COMP_INT0" 2 221 "0x700000"
d G "CCP_SHUTDOWN_AC_L" 2 223 "0x000000"
d G "CCP_SHUTDOWN_AC_H" 2 224 "0x040000"
d G "CCP_SHUTDOWN_AC_F" 2 225 "0x080000"
d G "CCP_SHUTDOWN_BD_L" 2 227 "0x000000"
d G "CCP_SHUTDOWN_BD_H" 2 228 "0x010000"
d G "CCP_SHUTDOWN_BD_F" 2 229 "0x020000"
d G "CCP_SHUTDOWN_RESTART" 2 231 "0x80000000"
d G "CCP_PULSE_STEERING_A" 2 233 "0x01000000"
d G "CCP_PULSE_STEERING_B" 2 234 "0x02000000"
d G "CCP_PULSE_STEERING_C" 2 235 "0x04000000"
d G "CCP_PULSE_STEERING_D" 2 236 "0x08000000"
d G "CCP_PULSE_STEERING_SYNC" 2 237 "0x10000000"
d G "SPI_MASTER" 2 245 "0x20"
d G "SPI_SLAVE" 2 246 "0x24"
d G "SPI_L_TO_H" 2 247 "0"
d G "SPI_H_TO_L" 2 248 "0x10"
d G "SPI_CLK_DIV_4" 2 249 "0"
d G "SPI_CLK_DIV_16" 2 250 "1"
d G "SPI_CLK_DIV_64" 2 251 "2"
d G "SPI_CLK_T2" 2 252 "3"
d G "SPI_SS_DISABLED" 2 253 "1"
d G "SPI_SAMPLE_AT_END" 2 255 "0x8000"
d G "SPI_XMIT_L_TO_H" 2 256 "0x4000"
d G "UART_ADDRESS" 2 262 "2"
d G "UART_DATA" 2 263 "4"
d G "UART_AUTODETECT" 2 264 "8"
d G "UART_AUTODETECT_NOWAIT" 2 265 "9"
d G "UART_WAKEUP_ON_RDA" 2 266 "10"
d G "UART_SEND_BREAK" 2 267 "13"
d G "NC_NC_NC_NC" 2 273 "0x00"
d G "NC_NC" 2 274 "0x00"
d G "CP1_A0_A3" 2 277 "0x00090080"
d G "CP1_A1_A3" 2 278 "0x000A0081"
d G "CP1_B3_A3" 2 279 "0x00880082"
d G "CP1_B1_A3" 2 280 "0x00280083"
d G "CP1_A0_VREF" 2 281 "0x00010084"
d G "CP1_A1_VREF" 2 282 "0x00020085"
d G "CP1_B3_VREF" 2 283 "0x00800086"
d G "CP1_B1_VREF" 2 284 "0x00200087"
d G "CP1_OUT_ON_A4" 2 286 "0x00000020"
d G "CP1_INVERT" 2 287 "0x00000010"
d G "CP1_ABSOLUTE_VREF" 2 288 "0x20000000"
d G "CP2_A0_A2" 2 291 "0x00058000"
d G "CP2_A1_A2" 2 292 "0x00068100"
d G "CP2_B3_A2" 2 293 "0x00848200"
d G "CP2_B1_A2" 2 294 "0x00248300"
d G "CP2_A0_VREF" 2 295 "0x00018400"
d G "CP2_A1_VREF" 2 296 "0x00028500"
d G "CP2_B3_VREF" 2 297 "0x00808600"
d G "CP2_B1_VREF" 2 298 "0x00208700"
d G "CP2_OUT_ON_A5" 2 300 "0x00002000"
d G "CP2_INVERT" 2 301 "0x00001000"
d G "CP2_ABSOLUTE_VREF" 2 302 "0x10000000"
d G "CP2_T1_SYNC" 2 305 "0x01000000"
d G "CP2_T1_GATE" 2 306 "0x02000000"
d G "VREF_LOW" 2 315 "0xa0"
d G "VREF_HIGH" 2 316 "0x80"
d G "OSC_31KHZ" 2 322 "1"
d G "OSC_125KHZ" 2 323 "0x11"
d G "OSC_250KHZ" 2 324 "0x21"
d G "OSC_500KHZ" 2 325 "0x31"
d G "OSC_1MHZ" 2 326 "0x41"
d G "OSC_2MHZ" 2 327 "0x51"
d G "OSC_4MHZ" 2 328 "0x61"
d G "OSC_8MHZ" 2 329 "0x71"
d G "OSC_INTRC" 2 330 "1"
d G "OSC_NORMAL" 2 331 "0"
d G "OSC_STATE_STABLE" 2 333 "4"
d G "OSC_31KHZ_STABLE" 2 334 "2"
d G "ADC_OFF" 2 342 "0" "ADC Off"
d G "ADC_CLOCK_DIV_2" 2 343 "0x100"
d G "ADC_CLOCK_DIV_8" 2 344 "0x40"
d G "ADC_CLOCK_DIV_32" 2 345 "0x80"
d G "ADC_CLOCK_INTERNAL" 2 346 "0xc0" "Internal 2-6us"
d G "sAN0" 2 350 "1" "| A0"
d G "sAN1" 2 351 "2" "| A1"
d G "sAN2" 2 352 "4" "| A2"
d G "sAN3" 2 353 "8" "| A3"
d G "sAN4" 2 354 "16" "| A5"
d G "sAN5" 2 355 "32" "| E0"
d G "sAN6" 2 356 "64" "| E1"
d G "sAN7" 2 357 "128" "| E2"
d G "sAN8" 2 358 "0x10000" "| B2"
d G "sAN9" 2 359 "0x20000" "| B3"
d G "sAN10" 2 360 "0x40000" "| B1"
d G "sAN11" 2 361 "0x80000" "| B4"
d G "sAN12" 2 362 "0x100000" "| B0"
d G "sAN13" 2 363 "0x200000" "| B5"
d G "NO_ANALOGS" 2 364 "0" "None"
d G "ALL_ANALOG" 2 365 "0x1F00FF" "A0 A1 A2 A3 A5 E0 E1 E2 B0 B1 B2 B3 B4 B5"
d G "VSS_VDD" 2 368 "0x0000" "| Range 0-Vdd"
d G "VSS_VREF" 2 369 "0x1000" "| Range 0-Vref"
d G "VREF_VREF" 2 370 "0x3000" "| Range Vref-Vref"
d G "VREF_VDD" 2 371 "0x2000" "| Range Vref-Vdd"
d G "ADC_START_AND_READ" 2 375 "7" "This is the default if nothing is specified"
d G "ADC_START_ONLY" 2 376 "1"
d G "ADC_READ_ONLY" 2 377 "6"
d G "L_TO_H" 2 389 "0x40"
d G "H_TO_L" 2 390 "0"
d G "GLOBAL" 2 392 "0x0BC0"
d G "INT_RTCC" 2 393 "0x000B20"
d G "INT_RB" 2 394 "0x01FF0B08"
d G "INT_EXT_L2H" 2 395 "0x50000B10"
d G "INT_EXT_H2L" 2 396 "0x60000B10"
d G "INT_EXT" 2 397 "0x000B10"
d G "INT_AD" 2 398 "0x008C40"
d G "INT_TBE" 2 399 "0x008C10"
d G "INT_RDA" 2 400 "0x008C20"
d G "INT_TIMER1" 2 401 "0x008C01"
d G "INT_TIMER2" 2 402 "0x008C02"
d G "INT_CCP1" 2 403 "0x008C04"
d G "INT_CCP2" 2 404 "0x008D01"
d G "INT_SSP" 2 405 "0x008C08"
d G "INT_BUSCOL" 2 406 "0x008D08"
d G "INT_EEPROM" 2 407 "0x008D10"
d G "INT_TIMER0" 2 408 "0x000B20"
d G "INT_OSC_FAIL" 2 409 "0x008D80"
d G "INT_COMP" 2 410 "0x008D20"
d G "INT_COMP2" 2 411 "0x008D40"
d G "INT_ULPWU" 2 412 "0x008D04"
d G "INT_RB0" 2 413 "0x0010B08"
d G "INT_RB1" 2 414 "0x0020B08"
d G "INT_RB2" 2 415 "0x0040B08"
d G "INT_RB3" 2 416 "0x0080B08"
d G "INT_RB4" 2 417 "0x0100B08"
d G "INT_RB5" 2 418 "0x0200B08"
d G "INT_RB6" 2 419 "0x0400B08"
d G "INT_RB7" 2 420 "0x0800B08"
D G "LED1" 0 3 "PIN_C6" "CHANGE PIN_XX TO YOUR LED PIN NUMBER, EX: PIN_A5"
D G "LED2" 0 4 "PIN_C5" "CHANGE PIN_XX TO YOUR LED PIN NUMBER, EX: PIN_A5"
D G "LED3" 0 5 "PIN_C4" "pulse detect"
D G "LED4" 0 6 "PIN_D3" "CHANGE PIN_XX TO YOUR LED PIN NUMBER"
D G "S1" 0 8 "PIN_C2" "raw up"
D G "S2" 0 9 "PIN_C3" "raw down"
D G "S3" 0 10 "PIN_D0" "fine up"
D G "S4" 0 11 "PIN_D1" "fine down"
D G "S5" 0 12 "PIN_B1" "time setup"
D G "S6" 0 13 "PIN_B2" "treshold setup"
D G "BEEP" 0 15 "PIN_D2" "piezo beeper"
D G "LCD_ENABLE_PIN" 0 17 "PIN_E0"
D G "LCD_RS_PIN" 0 18 "PIN_E1"
D G "LCD_RW_PIN" 0 19 "PIN_E2"
D G "LCD_DATA4" 0 20 "PIN_D4"
D G "LCD_DATA5" 0 21 "PIN_D5"
D G "LCD_DATA6" 0 22 "PIN_D6"
D G "LCD_DATA7" 0 23 "PIN_D7"
T G "LCD_PIN_MAP" 3 81 "{int1 enable,int1 rs,int1 rw,int1 unused,int4 data}" "this is to improve compatability with previous LCD drivers that accepted"
D G "lcd_output_enable" 3 103 "(x) output_bit(LCD_ENABLE_PIN, x)"
D G "lcd_enable_tris" 3 104 "() output_drive(LCD_ENABLE_PIN)"
D G "lcd_output_rs" 3 111 "(x) output_bit(LCD_RS_PIN, x)"
D G "lcd_rs_tris" 3 112 "() output_drive(LCD_RS_PIN)"
D G "lcd_output_rw" 3 119 "(x) output_bit(LCD_RW_PIN, x)"
D G "lcd_rw_tris" 3 120 "() output_drive(LCD_RW_PIN)"
D G "LCD_TYPE" 3 170 "2" "0=5x7, 1=5x10, 2=2 lines"
D G "LCD_LINE_TWO" 3 174 "0x40" "LCD RAM address for the second line"
D G "LCD_LINE_LENGTH" 3 178 "20"
V G "LCD_INIT_STRING" 3 181 "int8[4]"
C L "lcd_read_nibble" 3 2 2 "FUNCTION"
F G "lcd_read_nibble" 3 185 "int8()"
F G "lcd_read_byte" 3 187 "int8()"
V L "low" 3 189 "int8"
V L "high" 3 189 "int8"
F G "lcd_read_nibble" 3 234 "int8()"
V L "n" 3 237 "int8"
C L "lcd_read_nibble" 3 2 1 "FUNCTION"
F G "lcd_send_nibble" 3 251 "void(int8 n)"
V L "n" 3 251 "int8"
C L "lcd_send_nibble" 3 2 1 "FUNCTION"
F G "lcd_send_byte" 3 269 "void(int8 address,int8 n)"
V L "address" 3 269 "int8"
V L "n" 3 269 "int8"
F G "lcd_init" 3 294 "void()"
V L "i" 3 296 "int8"
F G "lcd_gotoxy" 3 335 "void(int8 x,int8 y)"
V L "x" 3 335 "int8"
V L "y" 3 335 "int8"
V L "address" 3 337 "int8"
F G "lcd_putc" 3 353 "void(int8 c)"
V L "c" 3 353 "int8"
F G "lcd_getc" 3 396 "int8(int8 x,int8 y)"
V L "x" 3 396 "int8"
V L "y" 3 396 "int8"
V L "value" 3 398 "int8"
C L "lcd_getc" 3 2 1 "FUNCTION"
V G "pulse_count" 0 27 "int32"
V G "overflow_count" 0 28 "int16"
V G "time_overflow_count" 0 29 "int16"
F G "RTCC_isr" 0 33 "void()"
F G "TIMER1_isr" 0 39 "void()"
F G "sound_beep" 0 46 "void(int8 lenght,int16 frequency)"
V L "lenght" 0 46 "int8"
V L "frequency" 0 46 "int16"
V L "i" 0 48 "int8"
D G "TRESHOLD_setup" 0 57 "1"
D G "INTERVAL_setup" 0 58 "0"
F G "MAIN" 0 61 "void()"
V L "integration_time" 0 63 "int16"
V L "time" 0 64 "int16"
V L "last_timer" 0 65 "int16" "promena pro praskani"
V L "button_press" 0 66 "int1"
V L "setup_mode" 0 66 "int1"
C L "MAIN" 0 66 1 "FUNCTION"
V L "measurement_number" 0 67 "int16"
V L "treshold" 0 68 "int8"
C L "MAIN" 0 66 1 "FUNCTION"
C L "MAIN" 0 66 1 "FUNCTION"
C L "MAIN" 0 66 1 "FUNCTION"
C L "MAIN" 0 66 1 "FUNCTION"
C L "MAIN" 0 66 1 "FUNCTION"
C L "MAIN" 0 66 1 "FUNCTION"
C L "MAIN" 0 66 1 "FUNCTION"
C L "MAIN" 0 66 1 "FUNCTION"
C L "MAIN" 0 66 1 "FUNCTION"
C L "MAIN" 0 66 1 "FUNCTION"
C L "MAIN" 0 66 1 "FUNCTION"
C L "MAIN" 0 66 1 "FUNCTION"
C L "MAIN" 0 66 1 "FUNCTION"
C L "MAIN" 0 66 1 "FUNCTION"
C L "MAIN" 0 66 1 "FUNCTION"
C L "MAIN" 0 66 1 "FUNCTION"
C L "MAIN" 0 66 1 "FUNCTION"
C L "MAIN" 0 66 1 "FUNCTION"
C L "MAIN" 0 66 1 "FUNCTION"
C L "MAIN" 0 66 1 "FUNCTION"
C L "MAIN" 0 66 1 "FUNCTION"
C L "MAIN" 0 66 1 "FUNCTION"
F B "reset_cpu" 0 0
F B "abs" 1 0
F B "sleep_ulpwu" 1 0
F B "sleep" 0 0
F B "delay_cycles" 1 0
F B "read_bank" 2 0
F B "write_bank" 3 0
F B "shift_left" 2 2
F B "shift_right" 2 2
F B "rotate_left" 2 0
F B "rotate_right" 2 0
F B "_mul" 2 0
F B "memset" 3 0
F B "isamoung" 2 0
F B "isamong" 2 0
F B "bit_set" 2 0
F B "bit_clear" 2 0
F B "bit_test" 2 0
F B "toupper" 1 0
F B "tolower" 1 0
F B "swap" 1 0
F B "printf" 1 255
F B "fprintf" 1 255
F B "sprintf" 1 255
F B "make8" 2 0
F B "make16" 2 0
F B "make32" 1 255
F B "label_address" 1 1
F B "goto_address" 1 0
F B "_va_arg" 1 0
F B "offsetofbit" 2 2
F B "enable_interrupts" 1 0
F B "disable_interrupts" 1 0
F B "interrupt_active" 1 0
F B "clear_interrupt" 1 0
F B "jump_to_isr" 1 0
F B "ext_int_edge" 1 2
F B "read_eeprom" 1 0
F B "write_eeprom" 2 0
F B "read_program_eeprom" 1 0
F B "write_program_eeprom" 2 0
F B "write_program_memory" 4 0
F B "write_program_memory8" 4 0
F B "read_program_memory" 4 0
F B "read_program_memory8" 4 0
F B "erase_program_eeprom" 1 0
F B "strcpy" 2 0
F B "memcpy" 3 0
F B "strstr100" 2 0
F B "output_high" 1 0
F B "output_low" 1 0
F B "input" 1 0
F B "input_state" 1 0
F B "output_float" 1 0
F B "output_drive" 1 0
F B "output_bit" 1 1
F B "output_toggle" 1 0
F B "output_a" 1 0
F B "output_b" 1 0
F B "output_c" 1 0
F B "output_d" 1 0
F B "output_e" 1 0
F B "input_a" 0 0
F B "input_b" 0 0
F B "input_c" 0 0
F B "input_d" 0 0
F B "input_e" 0 0
F B "set_tris_a" 1 0
F B "set_tris_b" 1 0
F B "set_tris_c" 1 0
F B "set_tris_d" 1 0
F B "set_tris_e" 1 0
F B "get_tris_a" 0 0
F B "get_tris_b" 0 0
F B "get_tris_c" 0 0
F B "get_tris_d" 0 0
F B "get_tris_e" 0 0
F B "input_change_a" 0 0
F B "input_change_b" 0 0
F B "input_change_c" 0 0
F B "input_change_d" 0 0
F B "input_change_e" 0 0
F B "port_b_pullups" 1 0
F B "setup_counters" 2 0
F B "setup_wdt" 1 0
F B "restart_cause" 0 0
F B "restart_wdt" 0 0
F B "get_rtcc" 0 0
F B "set_rtcc" 1 0
F B "get_timer0" 0 0
F B "set_timer0" 1 0
F B "setup_comparator" 1 0
F B "setup_port_a" 1 0
F B "setup_adc_ports" 1 0
F B "setup_adc" 1 0
F B "set_adc_channel" 1 0
F B "read_adc" 0 1
F B "adc_done" 0 0
F B "setup_timer_0" 1 0
F B "setup_vref" 1 0
F B "setup_timer_1" 1 0
F B "get_timer1" 0 0
F B "set_timer1" 1 0
F B "setup_timer_2" 3 0
F B "get_timer2" 0 0
F B "set_timer2" 1 0
F B "setup_ccp1" 1 2
F B "set_pwm1_duty" 1 0
F B "setup_ccp2" 1 0
F B "set_pwm2_duty" 1 0
F B "setup_oscillator" 1 2
F B "setup_spi" 1 0
F B "spi_read" 0 1
F B "spi_write" 1 0
F B "spi_data_is_in" 0 0
F B "setup_spi2" 1 0
F B "spi_read2" 0 1
F B "spi_write2" 1 0
F B "spi_data_is_in2" 0 0
F B "brownout_enable" 1 0
F B "delay_ms" 1 0
F B "delay_us" 1 0
F B "putchar" 1 2
F B "puts" 1 2
F B "getch" 0 1
F B "gets" 1 3
F B "kbhit" 0 1
/Designs/Measuring_instruments/GM_counter/SW/PIC16F887/main.hex
0,0 → 1,381
:1000000008308A0000280000FF00030E8301A100D1
:100010000A08A0008A010408A2007708A300780853
:10002000A4007908A5007A08A600831383128B1E0A
:100030001B280B1932288C308400001C21280C1836
:100040003528220884002308F7002408F800250832
:10005000F9002608FA0020088A00210E8300FF0E0E
:100060007F0E09008A110A1240288A110A124728B5
:100070000A108A100A11820728340C34013406341D
:10008000AD0A0319AE0A0B118A110A122128AB0A14
:100090000319AC0A2F122F08831687001030831221
:1000A0008706831608110430831288060C108A1103
:1000B0000A1221288C234D10E3377537F432721061
:1000C000D6182E18200520102019B01833104D26F0
:1000D00041210000C732E9336539AD267536EC326F
:1000E0007210C3377537F4327210D6182E18A00666
:1000F0000A00A83129103218B119A026CC204210CC
:1001000061376410D5295417633DA0060A000C001E
:10011000C3377537741D2536751020102010000068
:10012000C3377537741D2536751020102010000157
:10013000A423CD21311730102536751025367510C2
:1001400025367510A0060A00473084008313000886
:100150000319B7280230F800F701F70BAD28F80BA8
:10016000AC289730F700F70BB328800BAA280800BB
:100170004E18BC280812BD280816831608128312D0
:10018000CE18C4288812C5288816831688128312B0
:100190004E19CC280813CD2808178316081383128C
:1001A000CE19D4288813D528881783168813000001
:1001B0008312091483160910DD28DE288312091022
:1001C0008316091083120800CF0183160816003029
:1001D0008312081A0130CF04831688160030831268
:1001E000881A0130F7000310F70D7708CF04831643
:1001F000081700308312081B0130F700F70DF70DC8
:10020000FC30F7057708CF04831688170030831277
:10021000881B0130F700F70DF70DF70DF830F705E3
:100220007708CF044F08F8000800831609108910DA
:100230000911831289108316891008168816081769
:1002400088178312091583160911000083120914F7
:100250008316091000008312E4207808CE000910EC
:100260008316091000008312091483160910382917
:100270008312E4207808CD000910831609100812B3
:1002800088120813881383124E0EF700F030F7051A
:1002900077084D04F8007808CD00CD1F512983164A
:1002A0001D29CB08031D5629891057298914831647
:1002B00089100000831209118316091100008312AE
:1002C00009108316091083124C0ECD000F30CD0596
:1002D0004D08CE00B8204C080F39CD00CE00B82014
:1002E0000800831608128812081388130910891051
:1002F000091183128910831689108312091183163C
:10030000091183120910831609100F308312C700D8
:10031000A4200130BA003A08033C031C972903309B
:10032000CE00B8200530C700A420BA0A8B290230BD
:10033000CE00B820BA013A08033C031CA8293A08A9
:100340003820BB00CB013B08CC001521BA0A9B2901
:100350008A150A12BA28480BAE29B1294030C900C3
:10036000B229C90101304702C90749088038CA00CB
:10037000CB014A08CC00152108004608073A0319AA
:10038000CB290B3A0319D029063A0319D829023A86
:100390000319DE29E3290130C700C800AB21E92990
:1003A000CB010130CC0015210230C700A420E9297F
:1003B0000130C7000230C800AB21E929CB01103061
:1003C000CC001521E9290130CB004608CC001521CD
:1003D000E9290800831603178C170C14000000008D
:1003E00083120C087F3903192E2A0313BA0003174E
:1003F0000D080313BB0003170F080313BC003A08D2
:10040000C600BD213B0803178D0003133C080317EA
:100410008F0083168C170C140000000083120C0D43
:100420000E0D7F3903192E2A0313BA0003170D0886
:100430000313BB0003170F080313BC003A08C600E0
:10044000BD213B0803178D0003133C0803178F00E1
:100450008D0A03198F0A0313EA29031703130800EF
:1004600083168613831286130830F800372A00009B
:10047000F817482AF813C60C03188617031C8613AE
:100480007817482A7813F80B3B2A462A000086176B
:100490003F308400840B4A2A0000F81B3A2A781B5C
:1004A000422A0800831603178C170C140000000062
:1004B00083120C087F390319962A0313BA00031715
:1004C0000D080313BB0003170F080313BC003A0801
:1004D000C60030223B0803178D0003133C080317A6
:1004E0008F0083168C170C140000000083120C0D73
:1004F0000E0D7F390319962A0313BA0003170D084E
:100500000313BB0003170F080313BC003A08C6000F
:1005100030223B0803178D0003133C0803178F009C
:100520008D0A03198F0A0313522A031703130800B5
:10053000831603178C170C14000000000318C72A39
:1005400083120C087F390313BB0003170D08031334
:10055000BC0003170F080313BD003B08C600BD21F4
:100560003C0803178D0003133D0803178F00831603
:100570008C170C140000000083120313BA0BC12A5D
:10058000C42A83160317C72AE62A83160317831281
:100590000C0D0E0D7F390313BB0003170D08031359
:1005A000BC0003170F080313BD003B08C600BD21A4
:1005B0003C0803178D0003133D0803178F008D0AB5
:1005C00003198F0A03100313BA0B982A0800F701C6
:1005D000F801F901FA01CE01CF01D001D1014D0896
:1005E0004C044B044A040319252B2030D20003107D
:1005F000C60DC70DC80DC90DCE0DCF0DD00DD10D37
:100600004D085102031D0E2B4C085002031D0E2BEA
:100610004B084F02031D0E2B4A084E02031C1F2BD2
:100620004A08CE024B08031C4B0FCF024C08031C98
:100630004C0FD0024D08031C4D0FD1020314F70DCF
:10064000F80DF90DFA0DD20BF72A4E308400831302
:1006500008000408BE003B30C5009A30C400CA3010
:10066000C300C2010A30C0003D08C9003C08C800F0
:100670003B08C7003A08C6004508CD004408CC0036
:100680004308CB004208CA00E7220008BA00840AE7
:100690000008BB00840A0008BC00840A0008BD00F2
:1006A000F708031D662B4008013A0319662B3E0824
:1006B0000319672B0F3940020319602B03186C2BA9
:1006C000BE1B6C2B3E1B672B2030682BBE013030CD
:1006D000F7077708C600BD214508C9004408C800CF
:1006E0004308C7004208C600CD01CC01CB010A3047
:1006F000CA00E7227A08C5007908C4007808C30058
:100700007708C200C00B342B08001030C000F7017E
:10071000FA01BD0CBC0C031C932B3E08F707031811
:10072000FA0A3F08FA07FA0CF70CF90CF80CC00BA0
:10073000892B8A150A1234298E30F7004108F800F7
:100740004008F900FA01F808031DB02B7908F800F9
:10075000F9010830F702F808031DB02BF701B82B98
:100760000310F81BB72BF90DF80DF703B02BF81396
:1007700008003C080319292CC40040080319292C3F
:10078000C4070318CA2B7F30C402031C292C031989
:10079000292CCE2B8130C4070318292C4408F700DC
:1007A000F801F901FA013D08C800C8173E08C70062
:1007B0003F08C6001830C400C501461CF72B43088B
:1007C000FA07031CE92BF90A031DE92BF80A0319A0
:1007D000C5174208F907031CF02BF80A0319C517BF
:1007E0004108BE00BE173E08F8070318C517C50D1F
:1007F000F80CF90CFA0CC80CC70CC60C0310C40B8F
:10080000DC2B0130F7070318292CF81B0E2CC80D20
:10081000FA0DF90DF80DF7030319292CC81F1F2C29
:10082000FA0A031D1F2CF90A031D1F2CF80A031DC9
:100830001F2CF80CF90CFA0CF70A0319292C3D08A7
:10084000C5004108C506C51F272CF8172D2CF81325
:100850002D2CF701F801F901FA018A150A12622913
:1008600080308318C506CA01CB014108C90045087C
:10087000C90640080319202DC800F70044080319D1
:10088000292DC8020319C52C031C832C4508CE0052
:10089000CE174608CD004708CC00CB010310CE0C84
:1008A000CD0CCC0CCB0CC80B4D2CC91F5A2C4A14A8
:1008B0003D2D4A1048104A16433084008313522DB0
:1008C0004A12C91B6D2C481C782CCE0CCD0CCC0CBC
:1008D000CB0CF70A0319382D782CCE1B7B2C031078
:1008E000CB0DCC0DCD0DCE0DF7030319382D6D2C8E
:1008F0004A17E52C4A134108C900C91F812CCE179D
:10090000312DCE13312D4408C800F7004008C8022D
:100910004108CE00CE174208CD004308CC00CB01E1
:100920000310CE0CCD0CCC0CCB0CC80B8F2CC91FDC
:100930009C2CCA143D2DCA104810CA16473084009A
:100940008313522DCA12C91BAF2C481CBA2CCE0CD3
:10095000CD0CCC0CCB0CF70A0319382DBA2CCE1BBE
:10096000BD2C0310CB0DCC0DCD0DCE0DF70303190F
:10097000382DAF2CCA17E52CCA134508C900C91F6A
:10098000C32CCE17312DCE13312D4508CE00CE17F6
:100990004608CD004708CC00C91FD22CCE134A15FB
:1009A0003D2D4A11CB014810433084008313522D52
:1009B000C91BFB2C4108C900481CE52CCE0CCD0CF2
:1009C000CC0CCB0CF70A0319382DCB1FF62CCC0A14
:1009D000031DF62CCD0A031DF62CCE0A031DF62CA2
:1009E000CE0CCD0CCC0CF70A0319382D4A1B7A2CEF
:1009F000CA1BBC2C1A2D8030CE06CE1F032D3D2DD8
:100A00004508C900102D4108C900CE08031D102D4E
:100A1000CD08031D102DCC08031D102DF701312D1D
:100A2000CE1B1A2D0310CB0DCC0DCD0DCE0DF70B1B
:100A3000102D382DC91F1E2DCE17312DCE13312D5F
:100A40004408F7004508CE004608CD004708CC0012
:100A5000312D4008F7004108CE004208CD00430880
:100A6000CC004E08F8004D08F9004C08FA00702D33
:100A7000F701F801F901FA01702DCB01CC09CD097C
:100A8000CE09CB09CB0A031D4B2DCC0A031D4B2DE0
:100A9000CD0A0319CE0A4A18592CCA189B2C4A1998
:100AA000D12C002D0008CC07031C5C2DCD0A031DA2
:100AB0005C2DCE0A0319481484030008CD07031CDB
:100AC000642DCE0A0319481484030008801F803A5D
:100AD000CE07031848144A1A602CCA1AA22CD82C24
:100AE0008A150A1285298E30F7004008F70241085E
:100AF000F9004208F800F917F70803198A2D0310C6
:100B0000F908031D862DF80803198A2DF90CF80C35
:100B1000F70B7F2DC11F912DF809F909F80A031968
:100B2000F90A8A150A129029C2010408C10042106C
:100B3000831B42143B0EF038BD00BD07E23EBE00F1
:100B4000323EC0003B080F39BE07BE07C007E93E72
:100B5000BF00BF07BF073A0E0F39BF07C007BF0D61
:100B6000C00DC009C00D3A080F39C007BD0D0730D0
:100B7000BC000A30C007BF03031CBA2DBF07BE0369
:100B8000031CBE2DBE07BD03031CC22DBD07BC0345
:100B9000031CC62D3C3084008313073041054113EC
:100BA000840740300402031941170008F700031DB1
:100BB000E12D411BE12D411AF32DC119E12D20300A
:100BC000E42DC11541123030F707BB010408BA000B
:100BD0003B10831B3B147708C600BD213A088400F4
:100BE00083133B188317840A411FD12D08003D0849
:100BF000F8013C020318FF2D3C08F7000B2EF7010B
:100C00000830BE00BC0DF70D3D0877020318F70051
:100C1000F80DBE0B022E080078083A08BC006430BC
:100C2000BD00F7257708BA0078083030031D1F2E65
:100C3000BB1C262EBB19262E3B1A2030222EBB11A0
:100C40003B123B14F8077808C600BD213A08BC00E7
:100C50000A30BD00F7257708BA0078083030031D48
:100C6000372EBB193B2E3B1C3B2E3B1A2030F8077E
:100C70007808C600BD213030BA073A08C600BD2149
:100C80008A150A123D2A0830C102031C532E413036
:100C9000840083130310800C00080319532E512E77
:100CA0000000800B502E0800BD013D083A02031CD5
:100CB0009C2E83160811043083128806BF01013070
:100CC000BE003C08C1003B08C000F801F901F70173
:100CD000FA014108031D6F2E40080319892E1030B8
:100CE000C2000310BE0DBF0DF70DFA0D41087A02C8
:100CF000031D7C2E40087702031C852E4008F70256
:100D0000031CFA034108FA020314F80DF90DC20B93
:100D1000712E7908BF007808BE003F08C000C00AE5
:100D2000C0030319972EFF30C1004326902E3E08C2
:100D3000C1004326BD0A552E0800831603178C17E1
:100D40000C14000000000318CC2E83120C087F390D
:100D50000313BB0003170D080313BC0003170F0890
:100D60000313BD003B08C60030223C0803178D006A
:100D700003133D0803178F0083168C170C14000013
:100D8000000083120313BA0BC62EC92E8316031755
:100D9000CC2EEB2E8316031783120C0D0E0D7F390C
:100DA0000313BB0003170D080313BC0003170F0840
:100DB0000313BD003B08C60030223C0803178D001A
:100DC00003133D0803178F008D0A03198F0A0310C0
:100DD0000313BA0B9D2E0800C2010408C100421083
:100DE000831B42143B0EF038BD00BD07E23EBE003F
:100DF000323EC0003B080F39BE07BE07C007E93EC0
:100E0000BF00BF07BF073A0E0F39BF07C007BF0DAE
:100E1000C00DC009C00D3A080F39C007BD0D07301D
:100E2000BC000A30C007BF03031C122FBF07BE035C
:100E3000031C162FBE07BD03031C1A2FBD07BC03DE
:100E4000031C1E2F3C3084008313073041054113DF
:100E5000840740300402031941170008F700031DFE
:100E6000392F411B392F411A4B2FC119392F2030EF
:100E70003C2FC11541123030F707BB010408BA00FE
:100E80003B10831B3B147708C60030223A088400CD
:100E900083133B188317840A411F292F0800040875
:100EA000BE003B30C5009A30C400CA30C300C20146
:100EB0000A30C0003D08C9003C08C8003B08C70014
:100EC0003A08C6004508CD004408CC004308CB00D2
:100ED0004208CA00E7220008BA00840A0008BB00E2
:100EE000840A0008BC00840A0008BD00F708031D3E
:100EF0008C2F4008013A03198C2F3E0803198D2FBF
:100F00000F3940020319862F0318922FBE1B922F10
:100F10003E1B8D2F20308E2FBE013030F707770813
:100F2000C60030224508C9004408C8004308C7006D
:100F30004208C600CD01CC01CB010A30CA00E7222D
:100F40007A08C5007908C4007808C3007708C20091
:0A0F5000C00B5A2F8A150A12892AD5
:10100000840183131F308305713083168F000F080E
:10101000861383128617AA01A901A801A701AC01B2
:10102000AB01AE01AD01831603170908C039890071
:1010300003131F129F1200300317880083128701C9
:1010400088018901FF300313AF00B1013C30B000CB
:10105000B610B801B7010630B900831603170908A6
:10106000C039890003131F129F1201300317880033
:10107000831203131F139F1783169F1783121F14C6
:101080009412AF122F088316870083122F162F0891
:10109000831687008312AF112F0883168700013053
:1010A000831294000030831694000108C039073879
:1010B00081000730831290000030F8009200003069
:1010C0008316920083122F112F0883168700831234
:1010D0000711831609130C308312970083169B01A6
:1010E0009C0101309D008312AF102F0883168700EA
:1010F000831287100C309D00013080007130831600
:101100008F000F08831295019B012F132F08831660
:10111000870083120717AF122F08831687008312E8
:1011200087162F122F08831687008312071683163F
:10113000881183128815831608118312081103176A
:101140008701A430880010308900831603138512AC
:101150000514831239088038BA00831697008D165B
:1011600083128B1683160C148C14C03083128B04DC
:101170008A1171298A155A3003178D0000308F00AB
:101180008A110313EA218A156A3003178D00003093
:101190008F008A11031352228A15793003178D00AC
:1011A00000308F008A11031352228A150430BA00CE
:1011B000FA30C7008A11A4208A15BA0BD8288730C4
:1011C00003178D0000308F008A110313EA218A155E
:1011D0000D30C6008A1130228A150A30C6008A11E5
:1011E00030228A158F018E010130C700C8008A1194
:1011F000AB218A15883003178D0000308F00031053
:1012000006300313BA008A1198228A1541308400EF
:101210002A08BD002908BC002808BB002708BA001E
:101220008A1129238A158C3003178D0000308F0016
:10123000031405300313BA008A1198228A150F0887
:10124000FA000E08F7000F087A02031D1F2977081D
:10125000BA007A08BB00FF30BD00BC002C08BF00FC
:101260002B08BE008A11852B8A157908FA007808A8
:101270003A07A7003B08A8007A0803187A0FA807C6
:10128000A901AA0101303007BA003108BB000318D8
:10129000BB0A2E08C1002D08C0008A119C238A15A4
:1012A0007A08BF007908BE007808BD007708BC0046
:1012B0006F30C300F030C2000530C1007A30C0008A
:1012C0008A11B92B8A157708BC007808BD00790807
:1012D000BE007A08BF003B08C1003A08C0008A116E
:1012E0009C238A1583147A08C3007908C200780801
:1012F000C1007708C0003F08C7003E08C6003D088F
:10130000C5003C08C4008A11302C8A157A08C30035
:101310007908C2007808C1007708C0008A11732DCF
:101320008A157908B3007808B2000F08FA000E0891
:10133000F7000F087A02031D95297708BA007A088A
:10134000BB0034083A02031DA92935083B020319E2
:10135000F629831608110430831288060130C7006D
:101360008A11A4208A158316081104308312880676
:101370002F122F08831687001030831287060F085C
:10138000FA000E08F7000F087A02031DBF2977083C
:10139000B4007A08B5000130C700C8008A11AB213B
:1013A0008A15903003178D0000308F00031006302F
:1013B0000313BA008A1198228A15413084002A0842
:1013C000BD002908BC002808BB002708BA008A1104
:1013D00029238A15943003178D0000308F000314E1
:1013E00005300313BA008A1198228A150130C7000C
:1013F0000230C8008A11AB218A155430C6008A1108
:10140000BD218A153A30C6008A11BD218A150230E5
:1014100084003308BB003208BA008A1194258A156B
:101420002030C6008A11BD218A154930C6008A11B4
:10143000BD218A153A30C6008A11BD218A150230B5
:1014400084003108BB003008BA008A1194258A153F
:101450002030C6008A11BD218A155530C6008A1178
:10146000BD218A153A30C6008A11BD218A15390876
:10147000BA001130BB008A110C2E8A152030C6002C
:101480008A11BD218A15B208031D9D2AB308031DC8
:101490009D2A8101AE01AD01E830BA000230BC00E6
:1014A000BC30BB008A1154268A15983003178D0072
:1014B00000308F00031008300313BA008A119D26F4
:1014C0008A15103084003808BB003708BA008A112A
:1014D000EC268A152030C6008A1130228A15103079
:1014E00084003108BB003008BA008A11EC268A1546
:1014F0002030C6008A1130228A15413084002A0823
:10150000BD002908BC002808BB002708BA008A11C2
:101510004F2F8A15A13003178D0000308F00031460
:1015200004300313BA008A119D268A158F018E019B
:10153000AC01AB01B70A0319B80A3618EF2B2F1507
:101540002F088316870083120719E22A1430C70078
:101550008A11A4208A152F152F088316870083125D
:101560000719E22A36146430BA000230BC00BC30DD
:10157000BB008A1154268A150030B6180130003A93
:101580000319C62A013A0319D52AE22A3108FF3C79
:10159000031CD42A031DD02A3008F93C031CD42A8A
:1015A0000530B0070318B10AE22A3908093C031CC8
:1015B000DB2A0530B90739088038BA00831697004E
:1015C0008312E22AAF152F0883168700831287192A
:1015D0002B2B1430C7008A11A4208A15AF152F08B1
:1015E00083168700831287192B2B36146430BA00B8
:1015F0000230BC005830BB008A1154268A150030D6
:10160000B6180130003A0319092B013A03191E2BB1
:101610002B2BB108031D102B3008053C0318162B8B
:101620000530B0020030031C0130B1028101AE016F
:10163000AD018F018E01AC01AB012B2B3908053CAC
:101640000318242B0530B90739088038BA008316EF
:10165000970083122B2B8316081483120818622B11
:101660001430C7008A11A4208A1583160814831227
:101670000818622B36146430BA000130BC00F43014
:10168000BB008A1154268A150030B6180130003A82
:1016900003194E2B013A0319572B622B300F532B92
:1016A000310F532B562BB00A0319B10A622B39089C
:1016B0000E3C0318B90A39088038BA00831697001F
:1016C0008312622B8316881483128818A32B14307C
:1016D000C7008A11A4208A158316881483128818DB
:1016E000A32B36146430BA000130BC009030BB002C
:1016F0008A1154268A150030B6180130003A0319B1
:10170000852B013A0319982BA32BB108031D8C2BB1
:101710003008013C0318902B30080319B103B003C3
:101720008101AE01AD018F018E01AC01AB01A32B94
:101730003908013C031CB90339088038BA00831604
:1017400097008312A32B8316861483128618C92B45
:101750001430C7008A11A4208A15831686148312B8
:101760008618C92B36146430BA000330BC00203010
:10177000BB008A1154268A15B6101030C7000130FC
:10178000C8008A11AB218A154930C6008A11BD21D3
:101790008A158316061583120619EF2B1430C7001D
:1017A0008A11A4208A158316061583120619EF2BB9
:1017B00036146430BA000330BC002030BB008A11FC
:1017C00054268A15B6141030C7000130C8008A119B
:1017D000AB218A155530C6008A11BD218A152F15F7
:1017E0002F08831687008312071D122CAF152F08B0
:1017F000831687008312871D122C83160814831208
:10180000081C122C831688148312881C122C831631
:1018100086148312861C122C831606158312061D4D
:08182000122C36101F29630091
:04400E00F52CFF3F4F
:00000001FF
;PIC16F887
;CRC=1D13 CREATED="23-V-13 16:19"
/Designs/Measuring_instruments/GM_counter/SW/PIC16F887/main.lst
0,0 → 1,2266
CCS PCM C Compiler, Version 4.106, 47914 23-V-13 16:19
 
Filename: Z:\home\kaklik\MLAB\Designs\Measuring_instruments\GM_counter\SW\counter\main.lst
 
ROM used: 3009 words (37%)
Largest free fragment is 2048
RAM used: 37 (10%) at main() level
56 (15%) worst case
Stack: 6 worst case (5 in main + 1 for interrupts)
 
*
0000: MOVLW 08
0001: MOVWF 0A
0002: GOTO 000
0003: NOP
0004: MOVWF 7F
0005: SWAPF 03,W
0006: CLRF 03
0007: MOVWF 21
0008: MOVF 0A,W
0009: MOVWF 20
000A: CLRF 0A
000B: MOVF 04,W
000C: MOVWF 22
000D: MOVF 77,W
000E: MOVWF 23
000F: MOVF 78,W
0010: MOVWF 24
0011: MOVF 79,W
0012: MOVWF 25
0013: MOVF 7A,W
0014: MOVWF 26
0015: BCF 03.7
0016: BCF 03.5
0017: BTFSS 0B.5
0018: GOTO 01B
0019: BTFSC 0B.2
001A: GOTO 032
001B: MOVLW 8C
001C: MOVWF 04
001D: BTFSS 00.0
001E: GOTO 021
001F: BTFSC 0C.0
0020: GOTO 035
0021: MOVF 22,W
0022: MOVWF 04
0023: MOVF 23,W
0024: MOVWF 77
0025: MOVF 24,W
0026: MOVWF 78
0027: MOVF 25,W
0028: MOVWF 79
0029: MOVF 26,W
002A: MOVWF 7A
002B: MOVF 20,W
002C: MOVWF 0A
002D: SWAPF 21,W
002E: MOVWF 03
002F: SWAPF 7F,F
0030: SWAPF 7F,W
0031: RETFIE
0032: BCF 0A.3
0033: BCF 0A.4
0034: GOTO 040
0035: BCF 0A.3
0036: BCF 0A.4
0037: GOTO 047
.................... #include ".\main.h"
.................... #include <16F887.h>
.................... //////// Standard Header file for the PIC16F887 device ////////////////
.................... #device PIC16F887
.................... #list
....................
.................... #device adc=10
....................
.................... #FUSES NOWDT //No Watch Dog Timer
.................... #FUSES INTRC //Internal RC Osc
.................... #FUSES NOPUT //No Power Up Timer
.................... #FUSES MCLR //Master Clear pin enabled
.................... #FUSES NOPROTECT //Code not protected from reading
.................... #FUSES NOCPD //No EE protection
.................... #FUSES NOBROWNOUT //No brownout reset
.................... #FUSES IESO //Internal External Switch Over mode enabled
.................... #FUSES FCMEN //Fail-safe clock monitor enabled
.................... #FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
.................... #FUSES NODEBUG //No Debug mode for ICD
.................... #FUSES NOWRT //Program memory not write protected
.................... #FUSES BORV40 //Brownout reset at 4.0V
....................
.................... #use delay(clock=8000000)
*
00A4: MOVLW 47
00A5: MOVWF 04
00A6: BCF 03.7
00A7: MOVF 00,W
00A8: BTFSC 03.2
00A9: GOTO 0B7
00AA: MOVLW 02
00AB: MOVWF 78
00AC: CLRF 77
00AD: DECFSZ 77,F
00AE: GOTO 0AD
00AF: DECFSZ 78,F
00B0: GOTO 0AC
00B1: MOVLW 97
00B2: MOVWF 77
00B3: DECFSZ 77,F
00B4: GOTO 0B3
00B5: DECFSZ 00,F
00B6: GOTO 0AA
00B7: RETURN
*
0643: MOVLW 08
0644: SUBWF 41,F
0645: BTFSS 03.0
0646: GOTO 653
0647: MOVLW 41
0648: MOVWF 04
0649: BCF 03.7
064A: BCF 03.0
064B: RRF 00,F
064C: MOVF 00,W
064D: BTFSC 03.2
064E: GOTO 653
064F: GOTO 651
0650: NOP
0651: DECFSZ 00,F
0652: GOTO 650
0653: RETURN
.................... #use rs232(baud=9600,parity=N,xmit=PIN_B7,rcv=PIN_B6,bits=8)
*
0230: BSF 03.5
0231: BCF 06.7
0232: BCF 03.5
0233: BCF 06.7
0234: MOVLW 08
0235: MOVWF 78
0236: GOTO 237
0237: NOP
0238: BSF 78.7
0239: GOTO 248
023A: BCF 78.7
023B: RRF 46,F
023C: BTFSC 03.0
023D: BSF 06.7
023E: BTFSS 03.0
023F: BCF 06.7
0240: BSF 78.6
0241: GOTO 248
0242: BCF 78.6
0243: DECFSZ 78,F
0244: GOTO 23B
0245: GOTO 246
0246: NOP
0247: BSF 06.7
0248: MOVLW 3F
0249: MOVWF 04
024A: DECFSZ 04,F
024B: GOTO 24A
024C: NOP
024D: BTFSC 78.7
024E: GOTO 23A
024F: BTFSC 78.6
0250: GOTO 242
0251: RETURN
....................
....................
....................
.................... #define LED1 PIN_C6 //CHANGE PIN_XX TO YOUR LED PIN NUMBER, EX: PIN_A5
.................... #define LED2 PIN_C5 //CHANGE PIN_XX TO YOUR LED PIN NUMBER, EX: PIN_A5
.................... #define LED3 PIN_C4 // pulse detect
.................... #define LED4 PIN_D3 //CHANGE PIN_XX TO YOUR LED PIN NUMBER
....................
.................... #define S1 PIN_C2 // raw up
.................... #define S2 PIN_C3 // raw down
.................... #define S3 PIN_D0 // fine up
.................... #define S4 PIN_D1 // fine down
.................... #define S5 PIN_B1 // time setup
.................... #define S6 PIN_B2 // treshold setup
....................
.................... #define BEEP PIN_D2 //piezo beeper
....................
.................... #define LCD_ENABLE_PIN PIN_E0 ////
.................... #define LCD_RS_PIN PIN_E1 ////
.................... #define LCD_RW_PIN PIN_E2 ////
.................... #define LCD_DATA4 PIN_D4 ////
.................... #define LCD_DATA5 PIN_D5 ////
.................... #define LCD_DATA6 PIN_D6 ////
.................... #define LCD_DATA7 PIN_D7
.................... #include <lcd.c>
.................... ///////////////////////////////////////////////////////////////////////////////
.................... //// LCD.C ////
.................... //// Driver for common LCD modules ////
.................... //// ////
.................... //// lcd_init() Must be called before any other function. ////
.................... //// ////
.................... //// lcd_putc(c) Will display c on the next position of the LCD. ////
.................... //// \a Set cursor position to upper left ////
.................... //// \f Clear display, set cursor to upper left ////
.................... //// \n Go to start of second line ////
.................... //// \b Move back one position ////
.................... //// If LCD_EXTENDED_NEWLINE is defined, the \n character ////
.................... //// will erase all remanining characters on the current ////
.................... //// line, and move the cursor to the beginning of the next ////
.................... //// line. ////
.................... //// If LCD_EXTENDED_NEWLINE is defined, the \r character ////
.................... //// will move the cursor to the start of the current ////
.................... //// line. ////
.................... //// ////
.................... //// lcd_gotoxy(x,y) Set write position on LCD (upper left is 1,1) ////
.................... //// ////
.................... //// lcd_getc(x,y) Returns character at position x,y on LCD ////
.................... //// ////
.................... //// CONFIGURATION ////
.................... //// The LCD can be configured in one of two ways: a.) port access or ////
.................... //// b.) pin access. Port access requires the entire 7 bit interface ////
.................... //// connected to one GPIO port, and the data bits (D4:D7 of the LCD) ////
.................... //// connected to sequential pins on the GPIO. Pin access ////
.................... //// has no requirements, all 7 bits of the control interface can ////
.................... //// can be connected to any GPIO using several ports. ////
.................... //// ////
.................... //// To use port access, #define LCD_DATA_PORT to the SFR location of ////
.................... //// of the GPIO port that holds the interface, -AND- edit LCD_PIN_MAP ////
.................... //// of this file to configure the pin order. If you are using a ////
.................... //// baseline PIC (PCB), then LCD_OUTPUT_MAP and LCD_INPUT_MAP also must ////
.................... //// be defined. ////
.................... //// ////
.................... //// Example of port access: ////
.................... //// #define LCD_DATA_PORT getenv("SFR:PORTD") ////
.................... //// ////
.................... //// To use pin access, the following pins must be defined: ////
.................... //// LCD_ENABLE_PIN ////
.................... //// LCD_RS_PIN ////
.................... //// LCD_RW_PIN ////
.................... //// LCD_DATA4 ////
.................... //// LCD_DATA5 ////
.................... //// LCD_DATA6 ////
.................... //// LCD_DATA7 ////
.................... //// ////
.................... //// Example of pin access: ////
.................... //// #define LCD_ENABLE_PIN PIN_E0 ////
.................... //// #define LCD_RS_PIN PIN_E1 ////
.................... //// #define LCD_RW_PIN PIN_E2 ////
.................... //// #define LCD_DATA4 PIN_D4 ////
.................... //// #define LCD_DATA5 PIN_D5 ////
.................... //// #define LCD_DATA6 PIN_D6 ////
.................... //// #define LCD_DATA7 PIN_D7 ////
.................... //// ////
.................... ///////////////////////////////////////////////////////////////////////////////
.................... //// (C) Copyright 1996,2010 Custom Computer Services ////
.................... //// This source code may only be used by licensed users of the CCS C ////
.................... //// compiler. This source code may only be distributed to other ////
.................... //// licensed users of the CCS C compiler. No other use, reproduction ////
.................... //// or distribution is permitted without written permission. ////
.................... //// Derivative programs created using this software in object code ////
.................... //// form are not restricted in any way. ////
.................... ///////////////////////////////////////////////////////////////////////////
....................
.................... // define the pinout.
.................... // only required if port access is being used.
.................... typedef struct
.................... { // This structure is overlayed
.................... BOOLEAN enable; // on to an I/O port to gain
.................... BOOLEAN rs; // access to the LCD pins.
.................... BOOLEAN rw; // The bits are allocated from
.................... BOOLEAN unused; // low order up. ENABLE will
.................... int data : 4; // be LSB pin of that port.
.................... #if defined(__PCD__) // The port used will be LCD_DATA_PORT.
.................... int reserved: 8;
.................... #endif
.................... } LCD_PIN_MAP;
....................
.................... // this is to improve compatability with previous LCD drivers that accepted
.................... // a define labeled 'use_portb_lcd' that configured the LCD onto port B.
.................... #if ((defined(use_portb_lcd)) && (use_portb_lcd==TRUE))
.................... #define LCD_DATA_PORT getenv("SFR:PORTB")
.................... #endif
....................
.................... #if defined(__PCB__)
.................... // these definitions only need to be modified for baseline PICs.
.................... // all other PICs use LCD_PIN_MAP or individual LCD_xxx pin definitions.
.................... /* EN, RS, RW, UNUSED, DATA */
.................... const LCD_PIN_MAP LCD_OUTPUT_MAP = {0, 0, 0, 0, 0};
.................... const LCD_PIN_MAP LCD_INPUT_MAP = {0, 0, 0, 0, 0xF};
.................... #endif
....................
.................... ////////////////////// END CONFIGURATION ///////////////////////////////////
....................
.................... #ifndef LCD_ENABLE_PIN
.................... #define lcd_output_enable(x) lcdlat.enable=x
.................... #define lcd_enable_tris() lcdtris.enable=0
.................... #else
.................... #define lcd_output_enable(x) output_bit(LCD_ENABLE_PIN, x)
.................... #define lcd_enable_tris() output_drive(LCD_ENABLE_PIN)
.................... #endif
....................
.................... #ifndef LCD_RS_PIN
.................... #define lcd_output_rs(x) lcdlat.rs=x
.................... #define lcd_rs_tris() lcdtris.rs=0
.................... #else
.................... #define lcd_output_rs(x) output_bit(LCD_RS_PIN, x)
.................... #define lcd_rs_tris() output_drive(LCD_RS_PIN)
.................... #endif
....................
.................... #ifndef LCD_RW_PIN
.................... #define lcd_output_rw(x) lcdlat.rw=x
.................... #define lcd_rw_tris() lcdtris.rw=0
.................... #else
.................... #define lcd_output_rw(x) output_bit(LCD_RW_PIN, x)
.................... #define lcd_rw_tris() output_drive(LCD_RW_PIN)
.................... #endif
....................
.................... // original version of this library incorrectly labeled LCD_DATA0 as LCD_DATA4,
.................... // LCD_DATA1 as LCD_DATA5, and so on. this block of code makes the driver
.................... // compatible with any code written for the original library
.................... #if (defined(LCD_DATA0) && defined(LCD_DATA1) && defined(LCD_DATA2) && defined(LCD_DATA3) && !defined(LCD_DATA4) && !defined(LCD_DATA5) && !defined(LCD_DATA6) && !defined(LCD_DATA7))
.................... #define LCD_DATA4 LCD_DATA0
.................... #define LCD_DATA5 LCD_DATA1
.................... #define LCD_DATA6 LCD_DATA2
.................... #define LCD_DATA7 LCD_DATA3
.................... #endif
....................
.................... #ifndef LCD_DATA4
.................... #ifndef LCD_DATA_PORT
.................... #if defined(__PCB__)
.................... #define LCD_DATA_PORT 0x06 //portb
.................... #define set_tris_lcd(x) set_tris_b(x)
.................... #else
.................... #if defined(PIN_D0)
.................... #define LCD_DATA_PORT getenv("SFR:PORTD") //portd
.................... #else
.................... #define LCD_DATA_PORT getenv("SFR:PORTB") //portb
.................... #endif
.................... #endif
.................... #endif
....................
.................... #if defined(__PCB__)
.................... LCD_PIN_MAP lcd, lcdlat;
.................... #byte lcd = LCD_DATA_PORT
.................... #byte lcdlat = LCD_DATA_PORT
.................... #elif defined(__PCM__)
.................... LCD_PIN_MAP lcd, lcdlat, lcdtris;
.................... #byte lcd = LCD_DATA_PORT
.................... #byte lcdlat = LCD_DATA_PORT
.................... #byte lcdtris = LCD_DATA_PORT+0x80
.................... #elif defined(__PCH__)
.................... LCD_PIN_MAP lcd, lcdlat, lcdtris;
.................... #byte lcd = LCD_DATA_PORT
.................... #byte lcdlat = LCD_DATA_PORT+9
.................... #byte lcdtris = LCD_DATA_PORT+0x12
.................... #elif defined(__PCD__)
.................... LCD_PIN_MAP lcd, lcdlat, lcdtris;
.................... #word lcd = LCD_DATA_PORT
.................... #word lcdlat = LCD_DATA_PORT+2
.................... #word lcdtris = LCD_DATA_PORT-0x02
.................... #endif
.................... #endif //LCD_DATA4 not defined
....................
.................... #ifndef LCD_TYPE
.................... #define LCD_TYPE 2 // 0=5x7, 1=5x10, 2=2 lines
.................... #endif
....................
.................... #ifndef LCD_LINE_TWO
.................... #define LCD_LINE_TWO 0x40 // LCD RAM address for the second line
.................... #endif
....................
.................... #ifndef LCD_LINE_LENGTH
.................... #define LCD_LINE_LENGTH 20
.................... #endif
....................
.................... BYTE const LCD_INIT_STRING[4] = {0x20 | (LCD_TYPE << 2), 0xc, 1, 6};
.................... // These bytes need to be sent to the LCD
.................... // to start it up.
....................
.................... BYTE lcd_read_nibble(void);
....................
.................... BYTE lcd_read_byte(void)
.................... {
.................... BYTE low,high;
....................
.................... #if defined(__PCB__)
.................... set_tris_lcd(LCD_INPUT_MAP);
.................... #else
.................... #if (defined(LCD_DATA4) && defined(LCD_DATA5) && defined(LCD_DATA6) && defined(LCD_DATA7))
.................... output_float(LCD_DATA4);
*
011D: BSF 08.4
.................... output_float(LCD_DATA5);
011E: BSF 08.5
.................... output_float(LCD_DATA6);
011F: BSF 08.6
.................... output_float(LCD_DATA7);
0120: BSF 08.7
.................... #else
.................... lcdtris.data = 0xF;
.................... #endif
.................... #endif
....................
.................... lcd_output_rw(1);
0121: BCF 03.5
0122: BSF 09.2
0123: BSF 03.5
0124: BCF 09.2
.................... delay_cycles(1);
0125: NOP
.................... lcd_output_enable(1);
0126: BCF 03.5
0127: BSF 09.0
0128: BSF 03.5
0129: BCF 09.0
.................... delay_cycles(1);
012A: NOP
.................... high = lcd_read_nibble();
012B: BCF 03.5
012C: CALL 0E4
012D: MOVF 78,W
012E: MOVWF 4E
....................
.................... lcd_output_enable(0);
012F: BCF 09.0
0130: BSF 03.5
0131: BCF 09.0
.................... delay_cycles(1);
0132: NOP
.................... lcd_output_enable(1);
0133: BCF 03.5
0134: BSF 09.0
0135: BSF 03.5
0136: BCF 09.0
.................... delay_us(1);
0137: GOTO 138
.................... low = lcd_read_nibble();
0138: BCF 03.5
0139: CALL 0E4
013A: MOVF 78,W
013B: MOVWF 4D
....................
.................... lcd_output_enable(0);
013C: BCF 09.0
013D: BSF 03.5
013E: BCF 09.0
....................
.................... #if defined(__PCB__)
.................... set_tris_lcd(LCD_OUTPUT_MAP);
.................... #else
.................... #if (defined(LCD_DATA4) && defined(LCD_DATA5) && defined(LCD_DATA6) && defined(LCD_DATA7))
.................... output_drive(LCD_DATA4);
013F: BCF 08.4
.................... output_drive(LCD_DATA5);
0140: BCF 08.5
.................... output_drive(LCD_DATA6);
0141: BCF 08.6
.................... output_drive(LCD_DATA7);
0142: BCF 08.7
.................... #else
.................... lcdtris.data = 0x0;
.................... #endif
.................... #endif
....................
.................... return( (high<<4) | low);
0143: BCF 03.5
0144: SWAPF 4E,W
0145: MOVWF 77
0146: MOVLW F0
0147: ANDWF 77,F
0148: MOVF 77,W
0149: IORWF 4D,W
014A: MOVWF 78
.................... }
....................
.................... BYTE lcd_read_nibble(void)
.................... {
.................... #if (defined(LCD_DATA4) && defined(LCD_DATA5) && defined(LCD_DATA6) && defined(LCD_DATA7))
*
00E4: CLRF 4F
.................... BYTE n = 0x00;
....................
.................... /* Read the data port */
.................... n |= input(LCD_DATA4);
00E5: BSF 03.5
00E6: BSF 08.4
00E7: MOVLW 00
00E8: BCF 03.5
00E9: BTFSC 08.4
00EA: MOVLW 01
00EB: IORWF 4F,F
.................... n |= input(LCD_DATA5) << 1;
00EC: BSF 03.5
00ED: BSF 08.5
00EE: MOVLW 00
00EF: BCF 03.5
00F0: BTFSC 08.5
00F1: MOVLW 01
00F2: MOVWF 77
00F3: BCF 03.0
00F4: RLF 77,F
00F5: MOVF 77,W
00F6: IORWF 4F,F
.................... n |= input(LCD_DATA6) << 2;
00F7: BSF 03.5
00F8: BSF 08.6
00F9: MOVLW 00
00FA: BCF 03.5
00FB: BTFSC 08.6
00FC: MOVLW 01
00FD: MOVWF 77
00FE: RLF 77,F
00FF: RLF 77,F
0100: MOVLW FC
0101: ANDWF 77,F
0102: MOVF 77,W
0103: IORWF 4F,F
.................... n |= input(LCD_DATA7) << 3;
0104: BSF 03.5
0105: BSF 08.7
0106: MOVLW 00
0107: BCF 03.5
0108: BTFSC 08.7
0109: MOVLW 01
010A: MOVWF 77
010B: RLF 77,F
010C: RLF 77,F
010D: RLF 77,F
010E: MOVLW F8
010F: ANDWF 77,F
0110: MOVF 77,W
0111: IORWF 4F,F
....................
.................... return(n);
0112: MOVF 4F,W
0113: MOVWF 78
.................... #else
.................... return(lcd.data);
.................... #endif
.................... }
0114: RETURN
....................
.................... void lcd_send_nibble(BYTE n)
.................... {
.................... #if (defined(LCD_DATA4) && defined(LCD_DATA5) && defined(LCD_DATA6) && defined(LCD_DATA7))
.................... /* Write to the data port */
.................... output_bit(LCD_DATA4, bit_test(n, 0));
*
00B8: BTFSC 4E.0
00B9: GOTO 0BC
00BA: BCF 08.4
00BB: GOTO 0BD
00BC: BSF 08.4
00BD: BSF 03.5
00BE: BCF 08.4
.................... output_bit(LCD_DATA5, bit_test(n, 1));
00BF: BCF 03.5
00C0: BTFSC 4E.1
00C1: GOTO 0C4
00C2: BCF 08.5
00C3: GOTO 0C5
00C4: BSF 08.5
00C5: BSF 03.5
00C6: BCF 08.5
.................... output_bit(LCD_DATA6, bit_test(n, 2));
00C7: BCF 03.5
00C8: BTFSC 4E.2
00C9: GOTO 0CC
00CA: BCF 08.6
00CB: GOTO 0CD
00CC: BSF 08.6
00CD: BSF 03.5
00CE: BCF 08.6
.................... output_bit(LCD_DATA7, bit_test(n, 3));
00CF: BCF 03.5
00D0: BTFSC 4E.3
00D1: GOTO 0D4
00D2: BCF 08.7
00D3: GOTO 0D5
00D4: BSF 08.7
00D5: BSF 03.5
00D6: BCF 08.7
.................... #else
.................... lcdlat.data = n;
.................... #endif
....................
.................... delay_cycles(1);
00D7: NOP
.................... lcd_output_enable(1);
00D8: BCF 03.5
00D9: BSF 09.0
00DA: BSF 03.5
00DB: BCF 09.0
.................... delay_us(2);
00DC: GOTO 0DD
00DD: GOTO 0DE
.................... lcd_output_enable(0);
00DE: BCF 03.5
00DF: BCF 09.0
00E0: BSF 03.5
00E1: BCF 09.0
.................... }
00E2: BCF 03.5
00E3: RETURN
....................
.................... void lcd_send_byte(BYTE address, BYTE n)
.................... {
.................... #if defined(__PCB__)
.................... set_tris_lcd(LCD_OUTPUT_MAP);
.................... #else
.................... lcd_enable_tris();
*
0115: BSF 03.5
0116: BCF 09.0
.................... lcd_rs_tris();
0117: BCF 09.1
.................... lcd_rw_tris();
0118: BCF 09.2
.................... #endif
....................
.................... lcd_output_rs(0);
0119: BCF 03.5
011A: BCF 09.1
011B: BSF 03.5
011C: BCF 09.1
.................... while ( bit_test(lcd_read_byte(),7) ) ;
*
014B: MOVF 78,W
014C: MOVWF 4D
014D: BTFSS 4D.7
014E: GOTO 151
014F: BSF 03.5
0150: GOTO 11D
.................... lcd_output_rs(address);
0151: MOVF 4B,F
0152: BTFSS 03.2
0153: GOTO 156
0154: BCF 09.1
0155: GOTO 157
0156: BSF 09.1
0157: BSF 03.5
0158: BCF 09.1
.................... delay_cycles(1);
0159: NOP
.................... lcd_output_rw(0);
015A: BCF 03.5
015B: BCF 09.2
015C: BSF 03.5
015D: BCF 09.2
.................... delay_cycles(1);
015E: NOP
.................... lcd_output_enable(0);
015F: BCF 03.5
0160: BCF 09.0
0161: BSF 03.5
0162: BCF 09.0
.................... lcd_send_nibble(n >> 4);
0163: BCF 03.5
0164: SWAPF 4C,W
0165: MOVWF 4D
0166: MOVLW 0F
0167: ANDWF 4D,F
0168: MOVF 4D,W
0169: MOVWF 4E
016A: CALL 0B8
.................... lcd_send_nibble(n & 0xf);
016B: MOVF 4C,W
016C: ANDLW 0F
016D: MOVWF 4D
016E: MOVWF 4E
016F: CALL 0B8
.................... }
0170: RETURN
....................
.................... #if defined(LCD_EXTENDED_NEWLINE)
.................... unsigned int8 g_LcdX, g_LcdY;
.................... #endif
....................
.................... void lcd_init(void)
.................... {
.................... BYTE i;
....................
.................... #if defined(__PCB__)
.................... set_tris_lcd(LCD_OUTPUT_MAP);
.................... #else
.................... #if (defined(LCD_DATA4) && defined(LCD_DATA5) && defined(LCD_DATA6) && defined(LCD_DATA7))
.................... output_drive(LCD_DATA4);
0171: BSF 03.5
0172: BCF 08.4
.................... output_drive(LCD_DATA5);
0173: BCF 08.5
.................... output_drive(LCD_DATA6);
0174: BCF 08.6
.................... output_drive(LCD_DATA7);
0175: BCF 08.7
.................... #else
.................... lcdtris.data = 0x0;
.................... #endif
.................... lcd_enable_tris();
0176: BCF 09.0
.................... lcd_rs_tris();
0177: BCF 09.1
.................... lcd_rw_tris();
0178: BCF 09.2
.................... #endif
....................
.................... lcd_output_rs(0);
0179: BCF 03.5
017A: BCF 09.1
017B: BSF 03.5
017C: BCF 09.1
.................... lcd_output_rw(0);
017D: BCF 03.5
017E: BCF 09.2
017F: BSF 03.5
0180: BCF 09.2
.................... lcd_output_enable(0);
0181: BCF 03.5
0182: BCF 09.0
0183: BSF 03.5
0184: BCF 09.0
....................
.................... delay_ms(15);
0185: MOVLW 0F
0186: BCF 03.5
0187: MOVWF 47
0188: CALL 0A4
.................... for(i=1;i<=3;++i)
0189: MOVLW 01
018A: MOVWF 3A
018B: MOVF 3A,W
018C: SUBLW 03
018D: BTFSS 03.0
018E: GOTO 197
.................... {
.................... lcd_send_nibble(3);
018F: MOVLW 03
0190: MOVWF 4E
0191: CALL 0B8
.................... delay_ms(5);
0192: MOVLW 05
0193: MOVWF 47
0194: CALL 0A4
.................... }
0195: INCF 3A,F
0196: GOTO 18B
....................
.................... lcd_send_nibble(2);
0197: MOVLW 02
0198: MOVWF 4E
0199: CALL 0B8
.................... for(i=0;i<=3;++i)
019A: CLRF 3A
019B: MOVF 3A,W
019C: SUBLW 03
019D: BTFSS 03.0
019E: GOTO 1A8
.................... lcd_send_byte(0,LCD_INIT_STRING[i]);
019F: MOVF 3A,W
01A0: CALL 038
01A1: MOVWF 3B
01A2: CLRF 4B
01A3: MOVF 3B,W
01A4: MOVWF 4C
01A5: CALL 115
....................
.................... #if defined(LCD_EXTENDED_NEWLINE)
01A6: INCF 3A,F
01A7: GOTO 19B
.................... g_LcdX = 0;
.................... g_LcdY = 0;
.................... #endif
.................... }
01A8: BSF 0A.3
01A9: BCF 0A.4
01AA: GOTO 0BA (RETURN)
....................
.................... void lcd_gotoxy(BYTE x, BYTE y)
.................... {
.................... BYTE address;
....................
.................... if(y!=1)
01AB: DECFSZ 48,W
01AC: GOTO 1AE
01AD: GOTO 1B1
.................... address=LCD_LINE_TWO;
01AE: MOVLW 40
01AF: MOVWF 49
.................... else
01B0: GOTO 1B2
.................... address=0;
01B1: CLRF 49
....................
.................... address+=x-1;
01B2: MOVLW 01
01B3: SUBWF 47,W
01B4: ADDWF 49,F
.................... lcd_send_byte(0,0x80|address);
01B5: MOVF 49,W
01B6: IORLW 80
01B7: MOVWF 4A
01B8: CLRF 4B
01B9: MOVF 4A,W
01BA: MOVWF 4C
01BB: CALL 115
....................
.................... #if defined(LCD_EXTENDED_NEWLINE)
.................... g_LcdX = x - 1;
.................... g_LcdY = y - 1;
.................... #endif
.................... }
01BC: RETURN
....................
.................... void lcd_putc(char c)
.................... {
.................... switch (c)
.................... {
01BD: MOVF 46,W
01BE: XORLW 07
01BF: BTFSC 03.2
01C0: GOTO 1CB
01C1: XORLW 0B
01C2: BTFSC 03.2
01C3: GOTO 1D0
01C4: XORLW 06
01C5: BTFSC 03.2
01C6: GOTO 1D8
01C7: XORLW 02
01C8: BTFSC 03.2
01C9: GOTO 1DE
01CA: GOTO 1E3
.................... case '\a' : lcd_gotoxy(1,1); break;
01CB: MOVLW 01
01CC: MOVWF 47
01CD: MOVWF 48
01CE: CALL 1AB
01CF: GOTO 1E9
....................
.................... case '\f' : lcd_send_byte(0,1);
01D0: CLRF 4B
01D1: MOVLW 01
01D2: MOVWF 4C
01D3: CALL 115
.................... delay_ms(2);
01D4: MOVLW 02
01D5: MOVWF 47
01D6: CALL 0A4
.................... #if defined(LCD_EXTENDED_NEWLINE)
.................... g_LcdX = 0;
.................... g_LcdY = 0;
.................... #endif
.................... break;
01D7: GOTO 1E9
....................
.................... #if defined(LCD_EXTENDED_NEWLINE)
.................... case '\r' : lcd_gotoxy(1, g_LcdY+1); break;
.................... case '\n' :
.................... while (g_LcdX++ < LCD_LINE_LENGTH)
.................... {
.................... lcd_send_byte(1, ' ');
.................... }
.................... lcd_gotoxy(1, g_LcdY+2);
.................... break;
.................... #else
.................... case '\n' : lcd_gotoxy(1,2); break;
01D8: MOVLW 01
01D9: MOVWF 47
01DA: MOVLW 02
01DB: MOVWF 48
01DC: CALL 1AB
01DD: GOTO 1E9
.................... #endif
....................
.................... case '\b' : lcd_send_byte(0,0x10); break;
01DE: CLRF 4B
01DF: MOVLW 10
01E0: MOVWF 4C
01E1: CALL 115
01E2: GOTO 1E9
....................
.................... #if defined(LCD_EXTENDED_NEWLINE)
.................... default :
.................... if (g_LcdX < LCD_LINE_LENGTH)
.................... {
.................... lcd_send_byte(1, c);
.................... g_LcdX++;
.................... }
.................... break;
.................... #else
.................... default : lcd_send_byte(1,c); break;
01E3: MOVLW 01
01E4: MOVWF 4B
01E5: MOVF 46,W
01E6: MOVWF 4C
01E7: CALL 115
01E8: GOTO 1E9
.................... #endif
.................... }
.................... }
01E9: RETURN
....................
.................... char lcd_getc(BYTE x, BYTE y)
.................... {
.................... char value;
....................
.................... lcd_gotoxy(x,y);
.................... while ( bit_test(lcd_read_byte(),7) ); // wait until busy flag is low
.................... lcd_output_rs(1);
.................... value = lcd_read_byte();
.................... lcd_output_rs(0);
....................
.................... return(value);
.................... }
....................
....................
....................
.................... unsigned int32 pulse_count=0;
.................... unsigned int16 overflow_count=0;
.................... unsigned int16 time_overflow_count=0;
....................
....................
.................... #int_RTCC
.................... void RTCC_isr(void)
.................... {
.................... time_overflow_count++;
*
0040: INCF 2D,F
0041: BTFSC 03.2
0042: INCF 2E,F
.................... }
....................
0043: BCF 0B.2
0044: BCF 0A.3
0045: BCF 0A.4
0046: GOTO 021
.................... #int_TIMER1
.................... void TIMER1_isr(void)
.................... {
.................... overflow_count++;
0047: INCF 2B,F
0048: BTFSC 03.2
0049: INCF 2C,F
.................... output_toggle(LED3);
004A: BCF 2F.4
004B: MOVF 2F,W
004C: BSF 03.5
004D: MOVWF 07
004E: MOVLW 10
004F: BCF 03.5
0050: XORWF 07,F
.................... output_toggle(BEEP);
0051: BSF 03.5
0052: BCF 08.2
0053: MOVLW 04
0054: BCF 03.5
0055: XORWF 08,F
.................... }
....................
0056: BCF 0C.0
0057: BCF 0A.3
0058: BCF 0A.4
0059: GOTO 021
.................... void sound_beep( unsigned int lenght, int16 frequency)
.................... {
.................... unsigned int i;
....................
.................... for(i=0;i<=lenght;i++)
*
0654: CLRF 3D
0655: MOVF 3D,W
0656: SUBWF 3A,W
0657: BTFSS 03.0
0658: GOTO 69C
.................... {
.................... output_toggle(BEEP);
0659: BSF 03.5
065A: BCF 08.2
065B: MOVLW 04
065C: BCF 03.5
065D: XORWF 08,F
.................... delay_us(1/frequency);
065E: CLRF 3F
065F: MOVLW 01
0660: MOVWF 3E
0661: MOVF 3C,W
0662: MOVWF 41
0663: MOVF 3B,W
0664: MOVWF 40
*
0689: MOVF 79,W
068A: MOVWF 3F
068B: MOVF 78,W
068C: MOVWF 3E
068D: MOVF 3F,W
068E: MOVWF 40
068F: INCF 40,F
0690: DECF 40,F
0691: BTFSC 03.2
0692: GOTO 697
0693: MOVLW FF
0694: MOVWF 41
0695: CALL 643
0696: GOTO 690
0697: MOVF 3E,W
0698: MOVWF 41
0699: CALL 643
.................... }
069A: INCF 3D,F
069B: GOTO 655
.................... }
069C: RETURN
....................
.................... #define TRESHOLD_setup 1
.................... #define INTERVAL_setup 0
....................
....................
.................... void main()
.................... {
*
0800: CLRF 04
0801: BCF 03.7
0802: MOVLW 1F
0803: ANDWF 03,F
0804: MOVLW 71
0805: BSF 03.5
0806: MOVWF 0F
0807: MOVF 0F,W
0808: BCF 06.7
0809: BCF 03.5
080A: BSF 06.7
080B: CLRF 2A
080C: CLRF 29
080D: CLRF 28
080E: CLRF 27
080F: CLRF 2C
0810: CLRF 2B
0811: CLRF 2E
0812: CLRF 2D
0813: BSF 03.5
0814: BSF 03.6
0815: MOVF 09,W
0816: ANDLW C0
0817: MOVWF 09
0818: BCF 03.6
0819: BCF 1F.4
081A: BCF 1F.5
081B: MOVLW 00
081C: BSF 03.6
081D: MOVWF 08
081E: BCF 03.5
081F: CLRF 07
0820: CLRF 08
0821: CLRF 09
*
0825: CLRF 31
0826: MOVLW 3C
0827: MOVWF 30
0828: BCF 36.1
0829: CLRF 38
082A: CLRF 37
082B: MOVLW 06
082C: MOVWF 39
.................... unsigned int16 integration_time=60;
.................... unsigned int16 time;
.................... unsigned int16 last_timer; // promena pro praskani
.................... unsigned int1 button_press,setup_mode=INTERVAL_setup; // semafor pro cteni tlacitek
.................... unsigned int16 measurement_number=0;
.................... unsigned int8 treshold=6;
....................
.................... setup_adc_ports(sAN0|VSS_VDD);
082D: BSF 03.5
082E: BSF 03.6
082F: MOVF 09,W
0830: ANDLW C0
0831: MOVWF 09
0832: BCF 03.6
0833: BCF 1F.4
0834: BCF 1F.5
0835: MOVLW 01
0836: BSF 03.6
0837: MOVWF 08
.................... setup_adc(ADC_CLOCK_DIV_32);
0838: BCF 03.5
0839: BCF 03.6
083A: BCF 1F.6
083B: BSF 1F.7
083C: BSF 03.5
083D: BSF 1F.7
083E: BCF 03.5
083F: BSF 1F.0
.................... setup_spi(SPI_SS_DISABLED);
0840: BCF 14.5
0841: BCF 2F.5
0842: MOVF 2F,W
0843: BSF 03.5
0844: MOVWF 07
0845: BCF 03.5
0846: BSF 2F.4
0847: MOVF 2F,W
0848: BSF 03.5
0849: MOVWF 07
084A: BCF 03.5
084B: BCF 2F.3
084C: MOVF 2F,W
084D: BSF 03.5
084E: MOVWF 07
084F: MOVLW 01
0850: BCF 03.5
0851: MOVWF 14
0852: MOVLW 00
0853: BSF 03.5
0854: MOVWF 14
.................... setup_timer_0(RTCC_INTERNAL|RTCC_DIV_256);
0855: MOVF 01,W
0856: ANDLW C0
0857: IORLW 07
0858: MOVWF 01
.................... setup_timer_1(T1_EXTERNAL|T1_DIV_BY_1);
0859: MOVLW 07
085A: BCF 03.5
085B: MOVWF 10
.................... setup_timer_2(T2_DISABLED,0,1);
085C: MOVLW 00
085D: MOVWF 78
085E: MOVWF 12
085F: MOVLW 00
0860: BSF 03.5
0861: MOVWF 12
.................... setup_ccp1(CCP_PWM);
0862: BCF 03.5
0863: BCF 2F.2
0864: MOVF 2F,W
0865: BSF 03.5
0866: MOVWF 07
0867: BCF 03.5
0868: BCF 07.2
0869: BSF 03.5
086A: BCF 09.6
086B: MOVLW 0C
086C: BCF 03.5
086D: MOVWF 17
086E: BSF 03.5
086F: CLRF 1B
0870: CLRF 1C
0871: MOVLW 01
0872: MOVWF 1D
.................... setup_ccp2(CCP_PWM);
0873: BCF 03.5
0874: BCF 2F.1
0875: MOVF 2F,W
0876: BSF 03.5
0877: MOVWF 07
0878: BCF 03.5
0879: BCF 07.1
087A: MOVLW 0C
087B: MOVWF 1D
087C: MOVLW 01
087D: MOVWF 00
.................... setup_oscillator(OSC_8MHZ);
087E: MOVLW 71
087F: BSF 03.5
0880: MOVWF 0F
0881: MOVF 0F,W
....................
.................... set_pwm1_duty(0);
0882: BCF 03.5
0883: CLRF 15
.................... set_pwm2_duty(0);
0884: CLRF 1B
....................
.................... output_high(LED1);
0885: BCF 2F.6
0886: MOVF 2F,W
0887: BSF 03.5
0888: MOVWF 07
0889: BCF 03.5
088A: BSF 07.6
.................... output_high(LED2);
088B: BCF 2F.5
088C: MOVF 2F,W
088D: BSF 03.5
088E: MOVWF 07
088F: BCF 03.5
0890: BSF 07.5
.................... output_high(LED3);
0891: BCF 2F.4
0892: MOVF 2F,W
0893: BSF 03.5
0894: MOVWF 07
0895: BCF 03.5
0896: BSF 07.4
.................... output_high(LED4);
0897: BSF 03.5
0898: BCF 08.3
0899: BCF 03.5
089A: BSF 08.3
.................... output_low(BEEP);
089B: BSF 03.5
089C: BCF 08.2
089D: BCF 03.5
089E: BCF 08.2
....................
.................... setup_comparator(CP2_A0_VREF|CP2_OUT_ON_A5); // sets two comparators(A1 and VR and A2 as the output)
089F: BSF 03.6
08A0: CLRF 07
08A1: MOVLW A4
08A2: MOVWF 08
08A3: MOVLW 10
08A4: MOVWF 09
08A5: BSF 03.5
08A6: BCF 03.6
08A7: BCF 05.5
08A8: BSF 05.0
.................... setup_vref(VREF_HIGH|treshold); //sets 3.6(vdd *value/32 +vdd/4) if vdd is 5.0V
08A9: BCF 03.5
08AA: MOVF 39,W
08AB: IORLW 80
08AC: MOVWF 3A
08AD: BSF 03.5
08AE: MOVWF 17
.................... enable_interrupts(INT_COMP); //enables the comparator interrupt
08AF: BSF 0D.5
.................... enable_interrupts(INT_RTCC);
08B0: BCF 03.5
08B1: BSF 0B.5
.................... enable_interrupts(INT_TIMER1);
08B2: BSF 03.5
08B3: BSF 0C.0
.................... enable_interrupts(INT_TIMER2);
08B4: BSF 0C.1
.................... enable_interrupts(GLOBAL);
08B5: MOVLW C0
08B6: BCF 03.5
08B7: IORWF 0B,F
.................... lcd_init();
08B8: BCF 0A.3
08B9: GOTO 171
08BA: BSF 0A.3
....................
.................... lcd_putc("\fGM counter V1.0 \n 2013 MLAB");
08BB: MOVLW 5A
08BC: BSF 03.6
08BD: MOVWF 0D
08BE: MOVLW 00
08BF: MOVWF 0F
08C0: BCF 0A.3
08C1: BCF 03.6
08C2: CALL 1EA
08C3: BSF 0A.3
.................... printf("Geiger-Muller Counter V1.0 \r\n");
08C4: MOVLW 6A
08C5: BSF 03.6
08C6: MOVWF 0D
08C7: MOVLW 00
08C8: MOVWF 0F
08C9: BCF 0A.3
08CA: BCF 03.6
08CB: CALL 252
08CC: BSF 0A.3
.................... printf("(c) 2013 MLAB and UST.cz \r\n");
08CD: MOVLW 79
08CE: BSF 03.6
08CF: MOVWF 0D
08D0: MOVLW 00
08D1: MOVWF 0F
08D2: BCF 0A.3
08D3: BCF 03.6
08D4: CALL 252
08D5: BSF 0A.3
.................... Delay_ms(1000);
08D6: MOVLW 04
08D7: MOVWF 3A
08D8: MOVLW FA
08D9: MOVWF 47
08DA: BCF 0A.3
08DB: CALL 0A4
08DC: BSF 0A.3
08DD: DECFSZ 3A,F
08DE: GOTO 0D8
....................
.................... lcd_putc("\f");
08DF: MOVLW 87
08E0: BSF 03.6
08E1: MOVWF 0D
08E2: MOVLW 00
08E3: MOVWF 0F
08E4: BCF 0A.3
08E5: BCF 03.6
08E6: CALL 1EA
08E7: BSF 0A.3
.................... printf("\r\n");
08E8: MOVLW 0D
08E9: MOVWF 46
08EA: BCF 0A.3
08EB: CALL 230
08EC: BSF 0A.3
08ED: MOVLW 0A
08EE: MOVWF 46
08EF: BCF 0A.3
08F0: CALL 230
08F1: BSF 0A.3
....................
.................... set_timer1(0);
08F2: CLRF 0F
08F3: CLRF 0E
....................
.................... lcd_gotoxy(1,1); // vypsani hodnoty count, abz byla na LCD hned od zapnuti
08F4: MOVLW 01
08F5: MOVWF 47
08F6: MOVWF 48
08F7: BCF 0A.3
08F8: CALL 1AB
08F9: BSF 0A.3
.................... printf(lcd_putc,"Count:%lu ",pulse_count);
08FA: MOVLW 88
08FB: BSF 03.6
08FC: MOVWF 0D
08FD: MOVLW 00
08FE: MOVWF 0F
08FF: BCF 03.0
0900: MOVLW 06
0901: BCF 03.6
0902: MOVWF 3A
0903: BCF 0A.3
0904: CALL 298
0905: BSF 0A.3
0906: MOVLW 41
0907: MOVWF 04
0908: MOVF 2A,W
0909: MOVWF 3D
090A: MOVF 29,W
090B: MOVWF 3C
090C: MOVF 28,W
090D: MOVWF 3B
090E: MOVF 27,W
090F: MOVWF 3A
0910: BCF 0A.3
0911: CALL 329
0912: BSF 0A.3
0913: MOVLW 8C
0914: BSF 03.6
0915: MOVWF 0D
0916: MOVLW 00
0917: MOVWF 0F
0918: BSF 03.0
0919: MOVLW 05
091A: BCF 03.6
091B: MOVWF 3A
091C: BCF 0A.3
091D: CALL 298
091E: BSF 0A.3
....................
.................... while(true)
.................... {
.................... pulse_count = get_timer1() + (0xffff * overflow_count); // compute pulse count
091F: MOVF 0F,W
0920: MOVWF 7A
0921: MOVF 0E,W
0922: MOVWF 77
0923: MOVF 0F,W
0924: SUBWF 7A,W
0925: BTFSS 03.2
0926: GOTO 11F
0927: MOVF 77,W
0928: MOVWF 3A
0929: MOVF 7A,W
092A: MOVWF 3B
092B: MOVLW FF
092C: MOVWF 3D
092D: MOVWF 3C
092E: MOVF 2C,W
092F: MOVWF 3F
0930: MOVF 2B,W
0931: MOVWF 3E
0932: BCF 0A.3
0933: GOTO 385
0934: BSF 0A.3
0935: MOVF 79,W
0936: MOVWF 7A
0937: MOVF 78,W
0938: ADDWF 3A,W
0939: MOVWF 27
093A: MOVF 3B,W
093B: MOVWF 28
093C: MOVF 7A,W
093D: BTFSC 03.0
093E: INCFSZ 7A,W
093F: ADDWF 28,F
0940: CLRF 29
0941: CLRF 2A
.................... time = integration_time + 1 - (time_overflow_count * 0.0327); // compute time interval
0942: MOVLW 01
0943: ADDWF 30,W
0944: MOVWF 3A
0945: MOVF 31,W
0946: MOVWF 3B
0947: BTFSC 03.0
0948: INCF 3B,F
0949: MOVF 2E,W
094A: MOVWF 41
094B: MOVF 2D,W
094C: MOVWF 40
094D: BCF 0A.3
094E: CALL 39C
094F: BSF 0A.3
0950: MOVF 7A,W
0951: MOVWF 3F
0952: MOVF 79,W
0953: MOVWF 3E
0954: MOVF 78,W
0955: MOVWF 3D
0956: MOVF 77,W
0957: MOVWF 3C
0958: MOVLW 6F
0959: MOVWF 43
095A: MOVLW F0
095B: MOVWF 42
095C: MOVLW 05
095D: MOVWF 41
095E: MOVLW 7A
095F: MOVWF 40
0960: BCF 0A.3
0961: GOTO 3B9
0962: BSF 0A.3
0963: MOVF 77,W
0964: MOVWF 3C
0965: MOVF 78,W
0966: MOVWF 3D
0967: MOVF 79,W
0968: MOVWF 3E
0969: MOVF 7A,W
096A: MOVWF 3F
096B: MOVF 3B,W
096C: MOVWF 41
096D: MOVF 3A,W
096E: MOVWF 40
096F: BCF 0A.3
0970: CALL 39C
0971: BSF 0A.3
0972: BSF 03.1
0973: MOVF 7A,W
0974: MOVWF 43
0975: MOVF 79,W
0976: MOVWF 42
0977: MOVF 78,W
0978: MOVWF 41
0979: MOVF 77,W
097A: MOVWF 40
097B: MOVF 3F,W
097C: MOVWF 47
097D: MOVF 3E,W
097E: MOVWF 46
097F: MOVF 3D,W
0980: MOVWF 45
0981: MOVF 3C,W
0982: MOVWF 44
0983: BCF 0A.3
0984: GOTO 430
0985: BSF 0A.3
0986: MOVF 7A,W
0987: MOVWF 43
0988: MOVF 79,W
0989: MOVWF 42
098A: MOVF 78,W
098B: MOVWF 41
098C: MOVF 77,W
098D: MOVWF 40
098E: BCF 0A.3
098F: GOTO 573
0990: BSF 0A.3
0991: MOVF 79,W
0992: MOVWF 33
0993: MOVF 78,W
0994: MOVWF 32
....................
.................... if(get_timer1() != last_timer) // timer count increment detection
0995: MOVF 0F,W
0996: MOVWF 7A
0997: MOVF 0E,W
0998: MOVWF 77
0999: MOVF 0F,W
099A: SUBWF 7A,W
099B: BTFSS 03.2
099C: GOTO 195
099D: MOVF 77,W
099E: MOVWF 3A
099F: MOVF 7A,W
09A0: MOVWF 3B
09A1: MOVF 34,W
09A2: SUBWF 3A,W
09A3: BTFSS 03.2
09A4: GOTO 1A9
09A5: MOVF 35,W
09A6: SUBWF 3B,W
09A7: BTFSC 03.2
09A8: GOTO 1F6
.................... {
.................... output_toggle(BEEP);
09A9: BSF 03.5
09AA: BCF 08.2
09AB: MOVLW 04
09AC: BCF 03.5
09AD: XORWF 08,F
.................... delay_ms(1);
09AE: MOVLW 01
09AF: MOVWF 47
09B0: BCF 0A.3
09B1: CALL 0A4
09B2: BSF 0A.3
.................... output_toggle(BEEP);
09B3: BSF 03.5
09B4: BCF 08.2
09B5: MOVLW 04
09B6: BCF 03.5
09B7: XORWF 08,F
.................... output_toggle(LED3);
09B8: BCF 2F.4
09B9: MOVF 2F,W
09BA: BSF 03.5
09BB: MOVWF 07
09BC: MOVLW 10
09BD: BCF 03.5
09BE: XORWF 07,F
.................... last_timer=get_timer1();
09BF: MOVF 0F,W
09C0: MOVWF 7A
09C1: MOVF 0E,W
09C2: MOVWF 77
09C3: MOVF 0F,W
09C4: SUBWF 7A,W
09C5: BTFSS 03.2
09C6: GOTO 1BF
09C7: MOVF 77,W
09C8: MOVWF 34
09C9: MOVF 7A,W
09CA: MOVWF 35
.................... lcd_gotoxy(1,1); // prepsani dat na displeje
09CB: MOVLW 01
09CC: MOVWF 47
09CD: MOVWF 48
09CE: BCF 0A.3
09CF: CALL 1AB
09D0: BSF 0A.3
.................... printf(lcd_putc,"Count:%lu ",pulse_count);
09D1: MOVLW 90
09D2: BSF 03.6
09D3: MOVWF 0D
09D4: MOVLW 00
09D5: MOVWF 0F
09D6: BCF 03.0
09D7: MOVLW 06
09D8: BCF 03.6
09D9: MOVWF 3A
09DA: BCF 0A.3
09DB: CALL 298
09DC: BSF 0A.3
09DD: MOVLW 41
09DE: MOVWF 04
09DF: MOVF 2A,W
09E0: MOVWF 3D
09E1: MOVF 29,W
09E2: MOVWF 3C
09E3: MOVF 28,W
09E4: MOVWF 3B
09E5: MOVF 27,W
09E6: MOVWF 3A
09E7: BCF 0A.3
09E8: CALL 329
09E9: BSF 0A.3
09EA: MOVLW 94
09EB: BSF 03.6
09EC: MOVWF 0D
09ED: MOVLW 00
09EE: MOVWF 0F
09EF: BSF 03.0
09F0: MOVLW 05
09F1: BCF 03.6
09F2: MOVWF 3A
09F3: BCF 0A.3
09F4: CALL 298
09F5: BSF 0A.3
.................... }
....................
.................... lcd_gotoxy(1,2);
09F6: MOVLW 01
09F7: MOVWF 47
09F8: MOVLW 02
09F9: MOVWF 48
09FA: BCF 0A.3
09FB: CALL 1AB
09FC: BSF 0A.3
.................... printf(lcd_putc,"T:%3lu I:%3lu U:%2u ",time,integration_time,treshold);
09FD: MOVLW 54
09FE: MOVWF 46
09FF: BCF 0A.3
0A00: CALL 1BD
0A01: BSF 0A.3
0A02: MOVLW 3A
0A03: MOVWF 46
0A04: BCF 0A.3
0A05: CALL 1BD
0A06: BSF 0A.3
0A07: MOVLW 02
0A08: MOVWF 04
0A09: MOVF 33,W
0A0A: MOVWF 3B
0A0B: MOVF 32,W
0A0C: MOVWF 3A
0A0D: BCF 0A.3
0A0E: CALL 594
0A0F: BSF 0A.3
0A10: MOVLW 20
0A11: MOVWF 46
0A12: BCF 0A.3
0A13: CALL 1BD
0A14: BSF 0A.3
0A15: MOVLW 49
0A16: MOVWF 46
0A17: BCF 0A.3
0A18: CALL 1BD
0A19: BSF 0A.3
0A1A: MOVLW 3A
0A1B: MOVWF 46
0A1C: BCF 0A.3
0A1D: CALL 1BD
0A1E: BSF 0A.3
0A1F: MOVLW 02
0A20: MOVWF 04
0A21: MOVF 31,W
0A22: MOVWF 3B
0A23: MOVF 30,W
0A24: MOVWF 3A
0A25: BCF 0A.3
0A26: CALL 594
0A27: BSF 0A.3
0A28: MOVLW 20
0A29: MOVWF 46
0A2A: BCF 0A.3
0A2B: CALL 1BD
0A2C: BSF 0A.3
0A2D: MOVLW 55
0A2E: MOVWF 46
0A2F: BCF 0A.3
0A30: CALL 1BD
0A31: BSF 0A.3
0A32: MOVLW 3A
0A33: MOVWF 46
0A34: BCF 0A.3
0A35: CALL 1BD
0A36: BSF 0A.3
0A37: MOVF 39,W
0A38: MOVWF 3A
0A39: MOVLW 11
0A3A: MOVWF 3B
0A3B: BCF 0A.3
0A3C: GOTO 60C
0A3D: BSF 0A.3
0A3E: MOVLW 20
0A3F: MOVWF 46
0A40: BCF 0A.3
0A41: CALL 1BD
0A42: BSF 0A.3
.................... // printf(lcd_putc,"I:%4lu ", integration_time);
....................
.................... if(time == 0) // po uplynuti mereneho intervalu vypis na seriovku
0A43: MOVF 32,F
0A44: BTFSS 03.2
0A45: GOTO 29D
0A46: MOVF 33,F
0A47: BTFSS 03.2
0A48: GOTO 29D
.................... {
.................... set_timer0(0);
0A49: CLRF 01
.................... time_overflow_count=0;
0A4A: CLRF 2E
0A4B: CLRF 2D
.................... sound_beep(1000,700);
0A4C: MOVLW E8
0A4D: MOVWF 3A
0A4E: MOVLW 02
0A4F: MOVWF 3C
0A50: MOVLW BC
0A51: MOVWF 3B
0A52: BCF 0A.3
0A53: CALL 654
0A54: BSF 0A.3
.................... printf("$GMC1.0 %lu %lu %lu \r\n", measurement_number, integration_time, pulse_count);
0A55: MOVLW 98
0A56: BSF 03.6
0A57: MOVWF 0D
0A58: MOVLW 00
0A59: MOVWF 0F
0A5A: BCF 03.0
0A5B: MOVLW 08
0A5C: BCF 03.6
0A5D: MOVWF 3A
0A5E: BCF 0A.3
0A5F: CALL 69D
0A60: BSF 0A.3
0A61: MOVLW 10
0A62: MOVWF 04
0A63: MOVF 38,W
0A64: MOVWF 3B
0A65: MOVF 37,W
0A66: MOVWF 3A
0A67: BCF 0A.3
0A68: CALL 6EC
0A69: BSF 0A.3
0A6A: MOVLW 20
0A6B: MOVWF 46
0A6C: BCF 0A.3
0A6D: CALL 230
0A6E: BSF 0A.3
0A6F: MOVLW 10
0A70: MOVWF 04
0A71: MOVF 31,W
0A72: MOVWF 3B
0A73: MOVF 30,W
0A74: MOVWF 3A
0A75: BCF 0A.3
0A76: CALL 6EC
0A77: BSF 0A.3
0A78: MOVLW 20
0A79: MOVWF 46
0A7A: BCF 0A.3
0A7B: CALL 230
0A7C: BSF 0A.3
0A7D: MOVLW 41
0A7E: MOVWF 04
0A7F: MOVF 2A,W
0A80: MOVWF 3D
0A81: MOVF 29,W
0A82: MOVWF 3C
0A83: MOVF 28,W
0A84: MOVWF 3B
0A85: MOVF 27,W
0A86: MOVWF 3A
0A87: BCF 0A.3
0A88: GOTO 74F
0A89: BSF 0A.3
0A8A: MOVLW A1
0A8B: BSF 03.6
0A8C: MOVWF 0D
0A8D: MOVLW 00
0A8E: MOVWF 0F
0A8F: BSF 03.0
0A90: MOVLW 04
0A91: BCF 03.6
0A92: MOVWF 3A
0A93: BCF 0A.3
0A94: CALL 69D
0A95: BSF 0A.3
.................... set_timer1(0);
0A96: CLRF 0F
0A97: CLRF 0E
.................... overflow_count=0;
0A98: CLRF 2C
0A99: CLRF 2B
.................... measurement_number++;
0A9A: INCF 37,F
0A9B: BTFSC 03.2
0A9C: INCF 38,F
.................... }
....................
.................... if(button_press==false ) // tlacitka se ctou znovu pouze pokud v redchozim cyklu nebyla zmacknuta.
0A9D: BTFSC 36.0
0A9E: GOTO 3EF
.................... {
.................... if(!input(S1))
0A9F: BSF 2F.2
0AA0: MOVF 2F,W
0AA1: BSF 03.5
0AA2: MOVWF 07
0AA3: BCF 03.5
0AA4: BTFSC 07.2
0AA5: GOTO 2E2
.................... {
.................... delay_ms(20);
0AA6: MOVLW 14
0AA7: MOVWF 47
0AA8: BCF 0A.3
0AA9: CALL 0A4
0AAA: BSF 0A.3
.................... if(!input(S1))
0AAB: BSF 2F.2
0AAC: MOVF 2F,W
0AAD: BSF 03.5
0AAE: MOVWF 07
0AAF: BCF 03.5
0AB0: BTFSC 07.2
0AB1: GOTO 2E2
.................... {
.................... button_press=true;
0AB2: BSF 36.0
.................... sound_beep(100,700);
0AB3: MOVLW 64
0AB4: MOVWF 3A
0AB5: MOVLW 02
0AB6: MOVWF 3C
0AB7: MOVLW BC
0AB8: MOVWF 3B
0AB9: BCF 0A.3
0ABA: CALL 654
0ABB: BSF 0A.3
.................... switch (setup_mode)
.................... {
0ABC: MOVLW 00
0ABD: BTFSC 36.1
0ABE: MOVLW 01
0ABF: XORLW 00
0AC0: BTFSC 03.2
0AC1: GOTO 2C6
0AC2: XORLW 01
0AC3: BTFSC 03.2
0AC4: GOTO 2D5
0AC5: GOTO 2E2
.................... case INTERVAL_setup:
.................... if(integration_time < 0xfffa ) integration_time+=5;
0AC6: MOVF 31,W
0AC7: SUBLW FF
0AC8: BTFSS 03.0
0AC9: GOTO 2D4
0ACA: BTFSS 03.2
0ACB: GOTO 2D0
0ACC: MOVF 30,W
0ACD: SUBLW F9
0ACE: BTFSS 03.0
0ACF: GOTO 2D4
0AD0: MOVLW 05
0AD1: ADDWF 30,F
0AD2: BTFSC 03.0
0AD3: INCF 31,F
.................... break;
0AD4: GOTO 2E2
....................
.................... case TRESHOLD_setup:
.................... if(treshold < 0x0a ) treshold +=5;
0AD5: MOVF 39,W
0AD6: SUBLW 09
0AD7: BTFSS 03.0
0AD8: GOTO 2DB
0AD9: MOVLW 05
0ADA: ADDWF 39,F
.................... setup_vref(VREF_HIGH|treshold); //sets 3.6(vdd *value/32 +vdd/4) if vdd is 5.0V
0ADB: MOVF 39,W
0ADC: IORLW 80
0ADD: MOVWF 3A
0ADE: BSF 03.5
0ADF: MOVWF 17
.................... break;
0AE0: BCF 03.5
0AE1: GOTO 2E2
.................... }
.................... }
.................... }
....................
.................... if(!input(S2))
0AE2: BSF 2F.3
0AE3: MOVF 2F,W
0AE4: BSF 03.5
0AE5: MOVWF 07
0AE6: BCF 03.5
0AE7: BTFSC 07.3
0AE8: GOTO 32B
.................... {
.................... delay_ms(20);
0AE9: MOVLW 14
0AEA: MOVWF 47
0AEB: BCF 0A.3
0AEC: CALL 0A4
0AED: BSF 0A.3
.................... if(!input(S2))
0AEE: BSF 2F.3
0AEF: MOVF 2F,W
0AF0: BSF 03.5
0AF1: MOVWF 07
0AF2: BCF 03.5
0AF3: BTFSC 07.3
0AF4: GOTO 32B
.................... {
.................... button_press=true;
0AF5: BSF 36.0
.................... sound_beep(100,600);
0AF6: MOVLW 64
0AF7: MOVWF 3A
0AF8: MOVLW 02
0AF9: MOVWF 3C
0AFA: MOVLW 58
0AFB: MOVWF 3B
0AFC: BCF 0A.3
0AFD: CALL 654
0AFE: BSF 0A.3
.................... switch (setup_mode)
.................... {
0AFF: MOVLW 00
0B00: BTFSC 36.1
0B01: MOVLW 01
0B02: XORLW 00
0B03: BTFSC 03.2
0B04: GOTO 309
0B05: XORLW 01
0B06: BTFSC 03.2
0B07: GOTO 31E
0B08: GOTO 32B
.................... case INTERVAL_setup:
.................... if(integration_time > 0x0005 ) integration_time-=5;
0B09: MOVF 31,F
0B0A: BTFSS 03.2
0B0B: GOTO 310
0B0C: MOVF 30,W
0B0D: SUBLW 05
0B0E: BTFSC 03.0
0B0F: GOTO 316
0B10: MOVLW 05
0B11: SUBWF 30,F
0B12: MOVLW 00
0B13: BTFSS 03.0
0B14: MOVLW 01
0B15: SUBWF 31,F
.................... set_timer0(0); // vynulovani pocitadel, kdyz uzivatel sahne na tlacitka
0B16: CLRF 01
.................... time_overflow_count=0;
0B17: CLRF 2E
0B18: CLRF 2D
.................... set_timer1(0);
0B19: CLRF 0F
0B1A: CLRF 0E
.................... overflow_count=0;
0B1B: CLRF 2C
0B1C: CLRF 2B
.................... break;
0B1D: GOTO 32B
.................... case TRESHOLD_setup:
.................... if(treshold > 0x05 ) treshold +=5;
0B1E: MOVF 39,W
0B1F: SUBLW 05
0B20: BTFSC 03.0
0B21: GOTO 324
0B22: MOVLW 05
0B23: ADDWF 39,F
.................... setup_vref(VREF_HIGH|treshold); //sets 3.6(vdd *value/32 +vdd/4) if vdd is 5.0V
0B24: MOVF 39,W
0B25: IORLW 80
0B26: MOVWF 3A
0B27: BSF 03.5
0B28: MOVWF 17
.................... break;
0B29: BCF 03.5
0B2A: GOTO 32B
.................... }
.................... }
.................... }
....................
.................... if(!input(S3))
0B2B: BSF 03.5
0B2C: BSF 08.0
0B2D: BCF 03.5
0B2E: BTFSC 08.0
0B2F: GOTO 362
.................... {
.................... delay_ms(20);
0B30: MOVLW 14
0B31: MOVWF 47
0B32: BCF 0A.3
0B33: CALL 0A4
0B34: BSF 0A.3
.................... if(!input(S3))
0B35: BSF 03.5
0B36: BSF 08.0
0B37: BCF 03.5
0B38: BTFSC 08.0
0B39: GOTO 362
.................... {
.................... button_press=true;
0B3A: BSF 36.0
.................... sound_beep(100,500);
0B3B: MOVLW 64
0B3C: MOVWF 3A
0B3D: MOVLW 01
0B3E: MOVWF 3C
0B3F: MOVLW F4
0B40: MOVWF 3B
0B41: BCF 0A.3
0B42: CALL 654
0B43: BSF 0A.3
.................... switch (setup_mode)
.................... {
0B44: MOVLW 00
0B45: BTFSC 36.1
0B46: MOVLW 01
0B47: XORLW 00
0B48: BTFSC 03.2
0B49: GOTO 34E
0B4A: XORLW 01
0B4B: BTFSC 03.2
0B4C: GOTO 357
0B4D: GOTO 362
.................... case INTERVAL_setup:
.................... if(integration_time < 0xffff ) integration_time++;
0B4E: INCFSZ 30,W
0B4F: GOTO 353
0B50: INCFSZ 31,W
0B51: GOTO 353
0B52: GOTO 356
0B53: INCF 30,F
0B54: BTFSC 03.2
0B55: INCF 31,F
.................... break;
0B56: GOTO 362
....................
.................... case TRESHOLD_setup:
.................... if(treshold < 0x0F ) treshold ++;
0B57: MOVF 39,W
0B58: SUBLW 0E
0B59: BTFSC 03.0
0B5A: INCF 39,F
.................... setup_vref(VREF_HIGH|treshold); //sets 3.6(vdd *value/32 +vdd/4) if vdd is 5.0V
0B5B: MOVF 39,W
0B5C: IORLW 80
0B5D: MOVWF 3A
0B5E: BSF 03.5
0B5F: MOVWF 17
.................... break;
0B60: BCF 03.5
0B61: GOTO 362
.................... }
.................... }
.................... }
....................
.................... if(!input(S4))
0B62: BSF 03.5
0B63: BSF 08.1
0B64: BCF 03.5
0B65: BTFSC 08.1
0B66: GOTO 3A3
.................... {
.................... delay_ms(20);
0B67: MOVLW 14
0B68: MOVWF 47
0B69: BCF 0A.3
0B6A: CALL 0A4
0B6B: BSF 0A.3
.................... if(!input(S4))
0B6C: BSF 03.5
0B6D: BSF 08.1
0B6E: BCF 03.5
0B6F: BTFSC 08.1
0B70: GOTO 3A3
.................... {
.................... button_press=true;
0B71: BSF 36.0
.................... sound_beep(100,400);
0B72: MOVLW 64
0B73: MOVWF 3A
0B74: MOVLW 01
0B75: MOVWF 3C
0B76: MOVLW 90
0B77: MOVWF 3B
0B78: BCF 0A.3
0B79: CALL 654
0B7A: BSF 0A.3
.................... switch (setup_mode)
.................... {
0B7B: MOVLW 00
0B7C: BTFSC 36.1
0B7D: MOVLW 01
0B7E: XORLW 00
0B7F: BTFSC 03.2
0B80: GOTO 385
0B81: XORLW 01
0B82: BTFSC 03.2
0B83: GOTO 398
0B84: GOTO 3A3
.................... case INTERVAL_setup:
....................
.................... if(integration_time > 0x0001 ) integration_time--;
0B85: MOVF 31,F
0B86: BTFSS 03.2
0B87: GOTO 38C
0B88: MOVF 30,W
0B89: SUBLW 01
0B8A: BTFSC 03.0
0B8B: GOTO 390
0B8C: MOVF 30,W
0B8D: BTFSC 03.2
0B8E: DECF 31,F
0B8F: DECF 30,F
....................
.................... set_timer0(0); // vynulovani pocitadel, kdyz uzivatel sahne na tlacitka
0B90: CLRF 01
.................... time_overflow_count=0;
0B91: CLRF 2E
0B92: CLRF 2D
.................... set_timer1(0);
0B93: CLRF 0F
0B94: CLRF 0E
.................... overflow_count=0;
0B95: CLRF 2C
0B96: CLRF 2B
.................... break;
0B97: GOTO 3A3
.................... case TRESHOLD_setup:
.................... if(treshold > 0x01 ) treshold--;
0B98: MOVF 39,W
0B99: SUBLW 01
0B9A: BTFSS 03.0
0B9B: DECF 39,F
.................... setup_vref(VREF_HIGH|treshold); //sets 3.6(vdd *value/32 +vdd/4) if vdd is 5.0V
0B9C: MOVF 39,W
0B9D: IORLW 80
0B9E: MOVWF 3A
0B9F: BSF 03.5
0BA0: MOVWF 17
.................... break;
0BA1: BCF 03.5
0BA2: GOTO 3A3
.................... }
.................... }
.................... }
....................
.................... if(!input(S5)) // prepnuti na nastavovani casu
0BA3: BSF 03.5
0BA4: BSF 06.1
0BA5: BCF 03.5
0BA6: BTFSC 06.1
0BA7: GOTO 3C9
.................... {
.................... delay_ms(20);
0BA8: MOVLW 14
0BA9: MOVWF 47
0BAA: BCF 0A.3
0BAB: CALL 0A4
0BAC: BSF 0A.3
.................... if(!input(S5))
0BAD: BSF 03.5
0BAE: BSF 06.1
0BAF: BCF 03.5
0BB0: BTFSC 06.1
0BB1: GOTO 3C9
.................... {
.................... button_press=true;
0BB2: BSF 36.0
.................... sound_beep(100,800);
0BB3: MOVLW 64
0BB4: MOVWF 3A
0BB5: MOVLW 03
0BB6: MOVWF 3C
0BB7: MOVLW 20
0BB8: MOVWF 3B
0BB9: BCF 0A.3
0BBA: CALL 654
0BBB: BSF 0A.3
.................... setup_mode=INTERVAL_setup;
0BBC: BCF 36.1
.................... lcd_gotoxy(16,1); // prepsani dat na displeje
0BBD: MOVLW 10
0BBE: MOVWF 47
0BBF: MOVLW 01
0BC0: MOVWF 48
0BC1: BCF 0A.3
0BC2: CALL 1AB
0BC3: BSF 0A.3
.................... printf(lcd_putc,"I");
0BC4: MOVLW 49
0BC5: MOVWF 46
0BC6: BCF 0A.3
0BC7: CALL 1BD
0BC8: BSF 0A.3
.................... }
.................... }
....................
.................... if(!input(S6)) // prepnuti na nastavovani napeti
0BC9: BSF 03.5
0BCA: BSF 06.2
0BCB: BCF 03.5
0BCC: BTFSC 06.2
0BCD: GOTO 3EF
.................... {
.................... delay_ms(20);
0BCE: MOVLW 14
0BCF: MOVWF 47
0BD0: BCF 0A.3
0BD1: CALL 0A4
0BD2: BSF 0A.3
.................... if(!input(S6))
0BD3: BSF 03.5
0BD4: BSF 06.2
0BD5: BCF 03.5
0BD6: BTFSC 06.2
0BD7: GOTO 3EF
.................... {
.................... button_press=true;
0BD8: BSF 36.0
.................... sound_beep(100,800);
0BD9: MOVLW 64
0BDA: MOVWF 3A
0BDB: MOVLW 03
0BDC: MOVWF 3C
0BDD: MOVLW 20
0BDE: MOVWF 3B
0BDF: BCF 0A.3
0BE0: CALL 654
0BE1: BSF 0A.3
.................... setup_mode=TRESHOLD_setup;
0BE2: BSF 36.1
.................... lcd_gotoxy(16,1); // prepsani dat na displeje
0BE3: MOVLW 10
0BE4: MOVWF 47
0BE5: MOVLW 01
0BE6: MOVWF 48
0BE7: BCF 0A.3
0BE8: CALL 1AB
0BE9: BSF 0A.3
.................... printf(lcd_putc,"U");
0BEA: MOVLW 55
0BEB: MOVWF 46
0BEC: BCF 0A.3
0BED: CALL 1BD
0BEE: BSF 0A.3
.................... }
.................... }
.................... }
....................
.................... if ( input(S1) && input(S2) && input(S3) && input(S4) && input(S5) && input(S6)) // detekce pustenych tlacitek
0BEF: BSF 2F.2
0BF0: MOVF 2F,W
0BF1: BSF 03.5
0BF2: MOVWF 07
0BF3: BCF 03.5
0BF4: BTFSS 07.2
0BF5: GOTO 412
0BF6: BSF 2F.3
0BF7: MOVF 2F,W
0BF8: BSF 03.5
0BF9: MOVWF 07
0BFA: BCF 03.5
0BFB: BTFSS 07.3
0BFC: GOTO 412
0BFD: BSF 03.5
0BFE: BSF 08.0
0BFF: BCF 03.5
0C00: BTFSS 08.0
0C01: GOTO 412
0C02: BSF 03.5
0C03: BSF 08.1
0C04: BCF 03.5
0C05: BTFSS 08.1
0C06: GOTO 412
0C07: BSF 03.5
0C08: BSF 06.1
0C09: BCF 03.5
0C0A: BTFSS 06.1
0C0B: GOTO 412
0C0C: BSF 03.5
0C0D: BSF 06.2
0C0E: BCF 03.5
0C0F: BTFSS 06.2
0C10: GOTO 412
.................... {
.................... button_press=false;
0C11: BCF 36.0
.................... }
.................... }
0C12: GOTO 11F
.................... }
0C13: SLEEP
 
Configuration Fuses:
Word 1: 2CF5 INTRC NOWDT NOPUT MCLR NOPROTECT NOCPD NOBROWNOUT IESO FCMEN NOLVP NODEBUG
Word 2: 3FFF NOWRT BORV40
/Designs/Measuring_instruments/GM_counter/SW/PIC16F887/main.pjt
0,0 → 1,29
[PROJECT]
Target=D:\MLAB\Designs\Measuring_instruments\GM_counter\SW\main.hex
Development_Mode=
Processor_Text=PIC16F887
ToolSuite=CCS
Processor=0x887F
[D:\MLAB\Designs\Measuring_instruments\GM_counter\SW\main]
Type=4
Path=
FileList=
BuildTool=
OptionString=
AdditionalOptionString=
[mru-list]
1=D:\MLAB\Designs\Measuring_instruments\GM_counter\SW\main.c
[Windows]
0=0000 %S 0 0 796 451 3 0
[Opened Files]
1=main.c
2=
3=C:\Program Files (x86)\PICC\devices\16F887.h
4=C:\Program Files (x86)\PICC\drivers\lcd.c
5=
[Target Data]
OptionString=-p +FM
FileList=D:\MLAB\Designs\Measuring_instruments\GM_counter\SW\counter\main.c
[Units]
Count=1
1=main (main)
/Designs/Measuring_instruments/GM_counter/SW/PIC16F887/main.sta
0,0 → 1,86
 
ROM used: 3009 (37%)
3092 (38%) including unused fragments
 
3 Average locations per line
12 Average locations per statement
 
RAM used: 37 (10%) at main() level
56 (15%) worst case
 
Stack used: 6 worst case (out of 8 total available)
 
Lines Stmts % Files
----- ----- --- -----
269 158 64 main.c
21 0 0 main.h
423 0 0 C:\Program Files (x86)\PICC\devices\16F887.h
408 88 36 C:\Program Files (x86)\PICC\drivers\lcd.c
----- -----
1121 246 Total
 
Page ROM % RAM Vol Diff Functions:
---- --- --- --- --- ---- ----------
0 20 1 1 @delay_ms1
0 17 1 1 @delay_us1
0 34 1 1 @PUTCHAR_1_
0 8 0 0 @const78
Inline 3 751 4.5 lcd_read_byte
0 49 2 2 254 3.7 lcd_read_nibble
0 44 1 1 391 2.4 lcd_send_nibble
0 92 3 3 402 3.6 lcd_send_byte
0 58 2 2 666 5.0 lcd_init
0 18 1 4 191 5.8 lcd_gotoxy
0 45 1 1 354 4.7 lcd_putc
0 7 0 0 17 1.3 RTCC_isr
0 19 1 0 50 1.5 TIMER1_isr
0 73 2 7 170 4.1 sound_beep
Inline 5 @DIV1616
1 1044 35 16 6137 12.7 MAIN
0 16 1 0 @const124
0 70 2 3 @PSTRINGC7_96
0 15 0 0 @const126
0 70 2 3 @PSTRINGC7_64
0 14 0 0 @const128
0 1 0 0 @const129
0 8 0 0 @const131
0 79 3 4 @PSTRINGCN7_96
0 66 2 13 @DIV3232
0 92 3 12 @PRINTF_L32U_96
0 23 1 5 @MUL1616
0 29 1 2 @ITOF
0 119 4 13 @MULFF
0 323 11 16 @ADDFF
0 33 1 4 @SFTOI
0 8 0 0 @const152
0 99 3 9 @PRINTF_LU_96
0 21 1 3 @DIV88
0 55 2 2 @PRINTF_U_96
0 12 0 0 @const162
0 79 3 4 @PSTRINGCN7_64
0 99 3 9 @PRINTF_LU_64
0 94 3 12 @PRINTF_L32U_64
 
Program metrics:
Functions 11
Statements 246
Comments 195
Volume (V) 12590
Difficilty (D) 48.1
Effort to implement (E) 605765
Time to implement (T) 9 hours, 21 minutes
Est Delivered Bugs (B) 2
Cyclomatic Complexity 41
Maintainability (MI) 95
 
Segment Used Free
----------- ---- ----
00000-00003 4 0
00004-00037 52 0
00038-007FF 1909 83
00800-00FFF 1044 1004
01000-017FF 0 2048
01800-01FFF 0 2048
 
 
 
/Designs/Measuring_instruments/GM_counter/SW/PIC16F887/main.sym
0,0 → 1,261
004 @WRITE_PROGRAM_MEMORY8.P1
004-005 @READ_PROGRAM_MEMORY8.P2
015 CCP_1_LOW
015 CCP_1
016 CCP_1_HIGH
01B CCP_2_LOW
01B CCP_2
01C CCP_2_HIGH
020 @INTERRUPT_AREA
021 @INTERRUPT_AREA
022 @INTERRUPT_AREA
023 @INTERRUPT_AREA
024 @INTERRUPT_AREA
025 @INTERRUPT_AREA
026 @INTERRUPT_AREA
027-02A pulse_count
02B-02C overflow_count
02D-02E time_overflow_count
02F @TRIS_C
030-031 MAIN.integration_time
032-033 MAIN.time
034-035 MAIN.last_timer
036.0 MAIN.button_press
036.1 MAIN.setup_mode
037-038 MAIN.measurement_number
039 MAIN.treshold
03A @PRINTF_U_96.P1
03A @PSTRINGCN7_64.P2
03A-03B @PRINTF_LU_96.P3
03A-03D @PRINTF_L32U_64.P4
03A-03B @PRINTF_LU_64.P5
03A sound_beep.lenght
03A @PSTRINGCN7_96.P1
03A-03D @PRINTF_L32U_96.P2
03A lcd_init.i
03A MAIN.@SCRATCH1
03A @PSTRINGC7_96.@SCRATCH1
03A @PSTRINGC7_64.@SCRATCH1
03B-03C sound_beep.frequency
03B @PRINTF_U_96.P1
03B lcd_init.@SCRATCH1
03B MAIN.@SCRATCH2
03B @PSTRINGC7_96.@SCRATCH2
03B @PSTRINGC7_64.@SCRATCH2
03B @PSTRINGCN7_96.@SCRATCH1
03B @PSTRINGCN7_64.@SCRATCH1
03C-03D @MUL1616.P1
03C-03F @MULFF.P2
03C @DIV88.P3
03C MAIN.@SCRATCH3
03C @PSTRINGC7_96.@SCRATCH3
03C @PSTRINGC7_64.@SCRATCH3
03C @PSTRINGCN7_96.@SCRATCH2
03C @PRINTF_LU_96.@SCRATCH1
03C @PSTRINGCN7_64.@SCRATCH2
03C @PRINTF_LU_64.@SCRATCH1
03D sound_beep.i
03D @DIV88.P1
03D MAIN.@SCRATCH4
03D @PSTRINGCN7_96.@SCRATCH3
03D @PRINTF_LU_96.@SCRATCH2
03D @PSTRINGCN7_64.@SCRATCH3
03D @PRINTF_LU_64.@SCRATCH2
03E-03F @MUL1616.P1
03E-03F @DIV1616.P2
03E sound_beep.@SCRATCH1
03E MAIN.@SCRATCH5
03E @PRINTF_L32U_96.@SCRATCH1
03E @PRINTF_LU_96.@SCRATCH3
03E @DIV88.@SCRATCH1
03E @PRINTF_LU_64.@SCRATCH3
03E @PRINTF_L32U_64.@SCRATCH1
03F sound_beep.@SCRATCH2
03F MAIN.@SCRATCH6
03F @PRINTF_L32U_96.@SCRATCH2
03F @PRINTF_LU_96.@SCRATCH4
03F @PRINTF_LU_64.@SCRATCH4
03F @PRINTF_L32U_64.@SCRATCH2
040-041 @DIV1616.P1
040-043 @MULFF.P2
040-043 @ADDFF.P3
040-041 @ITOF.P4
040-043 @SFTOI.P5
040 sound_beep.@SCRATCH3
040 @PRINTF_L32U_96.@SCRATCH3
040 @MUL1616.@SCRATCH1
040 @PRINTF_LU_96.@SCRATCH5
040 @PRINTF_LU_64.@SCRATCH5
040 @PRINTF_L32U_64.@SCRATCH3
041 @delay_us1.P1
041 @PRINTF_L32U_96.@SCRATCH4
041 @PRINTF_LU_96.@SCRATCH6
041 @PRINTF_LU_64.@SCRATCH6
041 @PRINTF_L32U_64.@SCRATCH4
042 @DIV1616.@SCRATCH1
042 @PRINTF_L32U_96.@SCRATCH5
042 @PRINTF_LU_96.@SCRATCH7
042 @PRINTF_LU_64.@SCRATCH7
042 @PRINTF_L32U_64.@SCRATCH5
043 @PRINTF_L32U_96.@SCRATCH6
043 @PRINTF_L32U_64.@SCRATCH6
044-047 @ADDFF.P1
044 @PRINTF_L32U_96.@SCRATCH7
044 @MULFF.@SCRATCH1
044 @PRINTF_L32U_64.@SCRATCH7
045 @PRINTF_L32U_96.@SCRATCH8
045 @MULFF.@SCRATCH2
045 @PRINTF_L32U_64.@SCRATCH8
046 @PUTCHAR_1_.P1
046-049 @DIV3232.P2
046 lcd_putc.c
046 @MULFF.@SCRATCH3
047 @delay_ms1.P1
047 lcd_gotoxy.x
047 @MULFF.@SCRATCH4
048 lcd_gotoxy.y
048 @MULFF.@SCRATCH5
048 @ADDFF.@SCRATCH1
049 lcd_gotoxy.address
049 @ADDFF.@SCRATCH2
04A-04D @DIV3232.P1
04A lcd_gotoxy.@SCRATCH1
04A @ADDFF.@SCRATCH3
04B lcd_send_byte.address
04B @ADDFF.@SCRATCH4
04C lcd_send_byte.n
04C @ADDFF.@SCRATCH5
04D lcd_read_byte.low
04D lcd_send_byte.@SCRATCH1
04D @ADDFF.@SCRATCH6
04E lcd_read_byte.high
04E lcd_send_nibble.n
04E @DIV3232.@SCRATCH1
04E @ADDFF.@SCRATCH7
04F lcd_read_nibble.n
04F lcd_read_byte.@SCRATCH1
04F @DIV3232.@SCRATCH2
04F @ADDFF.@SCRATCH8
050 lcd_read_nibble.@SCRATCH1
050 @DIV3232.@SCRATCH3
051 @DIV3232.@SCRATCH4
052 @DIV3232.@SCRATCH5
077 @SCRATCH
078 @SCRATCH
078 _RETURN_
079 @SCRATCH
07A @SCRATCH
07F @INTERRUPT_AREA
0FF @INTERRUPT_AREA
107.6 C1OUT
108.6 C2OUT
10D-10E @WRITE_PROGRAM_MEMORY8.P1
10D-10E @READ_PROGRAM_MEMORY8.P2
17F @INTERRUPT_AREA
1FF @INTERRUPT_AREA
27F @INTERRUPT_AREA
2FF @INTERRUPT_AREA
37F @INTERRUPT_AREA
3FF @INTERRUPT_AREA
47F @INTERRUPT_AREA
4FF @INTERRUPT_AREA
57F @INTERRUPT_AREA
5FF @INTERRUPT_AREA
67F @INTERRUPT_AREA
6FF @INTERRUPT_AREA
77F @INTERRUPT_AREA
7FF @INTERRUPT_AREA
87F @INTERRUPT_AREA
8FF @INTERRUPT_AREA
97F @INTERRUPT_AREA
9FF @INTERRUPT_AREA
A7F @INTERRUPT_AREA
AFF @INTERRUPT_AREA
B7F @INTERRUPT_AREA
BFF @INTERRUPT_AREA
C7F @INTERRUPT_AREA
CFF @INTERRUPT_AREA
D7F @INTERRUPT_AREA
DFF @INTERRUPT_AREA
E7F @INTERRUPT_AREA
EFF @INTERRUPT_AREA
F7F @INTERRUPT_AREA
FFF @INTERRUPT_AREA
 
ROM Allocation:
00A4 @delay_ms1
0643 @delay_us1
0230 @PUTCHAR_1_
0038 LCD_INIT_STRING
011D lcd_read_byte
00E4 lcd_read_nibble
00B8 lcd_send_nibble
0115 lcd_send_byte
0171 lcd_init
01AB lcd_gotoxy
01BD lcd_putc
0040 RTCC_isr
0047 TIMER1_isr
0654 sound_beep
0665 @DIV1616
0800 MAIN
005A @const124
01EA @PSTRINGC7_96
006A @const126
0252 @PSTRINGC7_64
0079 @const128
0087 @const129
0088 @const131
0298 @PSTRINGCN7_96
02E7 @DIV3232
0329 @PRINTF_L32U_96
0385 @MUL1616
039C @ITOF
03B9 @MULFF
0430 @ADDFF
0573 @SFTOI
0090 @const152
0594 @PRINTF_LU_96
05F7 @DIV88
060C @PRINTF_U_96
0098 @const162
069D @PSTRINGCN7_64
06EC @PRINTF_LU_64
074F @PRINTF_L32U_64
0800 @cinit
 
 
User Memory space:
 
User Memory space:
 
Project Directory:
Z:\home\kaklik\MLAB\Designs\Measuring_instruments\GM_counter\SW\counter\
 
Project Files:
main.c
main.h
C:\Program Files (x86)\PICC\devices\16F887.h
C:\Program Files (x86)\PICC\drivers\lcd.c
 
Units:
Z:\home\kaklik\MLAB\Designs\Measuring_instruments\GM_counter\SW\counter\main (main)
 
Compiler Settings:
Processor: PIC16F887
Pointer Size: 16
ADC Range: 0-1023
Opt Level: 9
Short,Int,Long: UNSIGNED: 1,8,16
Float,Double: 32,32
 
Output Files:
Errors: main.err
Ext Symbols: main.esym
INHX8: main.hex
Symbols: main.sym
List: main.lst
Debug/COFF: main.cof
Project: main.PJT
Call Tree: main.tre
Statistics: main.sta
/Designs/Measuring_instruments/GM_counter/SW/PIC16F887/main.tre
0,0 → 1,1155
ÀÄmain
ÃÄMAIN 1/1044 Ram=16
³ ÃÄ??0??
³ ÃÄlcd_init 0/58 Ram=2
³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄ@const78 0/8 Ram=0
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄ@PSTRINGC7_96 0/70 Ram=3
³ ³ ÃÄlcd_putc 0/45 Ram=1
³ ³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_putc 0/45 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄ@PSTRINGC7_64 0/70 Ram=3
³ ³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ³ ÀÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÃÄ@PSTRINGC7_64 0/70 Ram=3
³ ³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ³ ÀÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÃÄ@delay_ms1 0/20 Ram=1
³ ÃÄ@PSTRINGC7_96 0/70 Ram=3
³ ³ ÃÄlcd_putc 0/45 Ram=1
³ ³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_putc 0/45 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄ@PSTRINGCN7_96 0/79 Ram=4
³ ³ ÃÄlcd_putc 0/45 Ram=1
³ ³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_putc 0/45 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄ@PRINTF_L32U_96 0/92 Ram=12
³ ³ ÃÄ@DIV3232 0/66 Ram=13
³ ³ ÃÄlcd_putc 0/45 Ram=1
³ ³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄ@DIV3232 0/66 Ram=13
³ ÃÄ@PSTRINGCN7_96 0/79 Ram=4
³ ³ ÃÄlcd_putc 0/45 Ram=1
³ ³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_putc 0/45 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄ@MUL1616 0/23 Ram=5
³ ÃÄ@ITOF 0/29 Ram=2
³ ÃÄ@MULFF 0/119 Ram=13
³ ÃÄ@ITOF 0/29 Ram=2
³ ÃÄ@ADDFF 0/323 Ram=16
³ ÃÄ@SFTOI 0/33 Ram=4
³ ÃÄ@delay_ms1 0/20 Ram=1
³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄ@PSTRINGCN7_96 0/79 Ram=4
³ ³ ÃÄlcd_putc 0/45 Ram=1
³ ³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_putc 0/45 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄ@PRINTF_L32U_96 0/92 Ram=12
³ ³ ÃÄ@DIV3232 0/66 Ram=13
³ ³ ÃÄlcd_putc 0/45 Ram=1
³ ³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄ@DIV3232 0/66 Ram=13
³ ÃÄ@PSTRINGCN7_96 0/79 Ram=4
³ ³ ÃÄlcd_putc 0/45 Ram=1
³ ³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_putc 0/45 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄlcd_putc 0/45 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄlcd_putc 0/45 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄ@PRINTF_LU_96 0/99 Ram=9
³ ³ ÀÄlcd_putc 0/45 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄlcd_putc 0/45 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄlcd_putc 0/45 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄlcd_putc 0/45 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄ@PRINTF_LU_96 0/99 Ram=9
³ ³ ÀÄlcd_putc 0/45 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄlcd_putc 0/45 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄlcd_putc 0/45 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄlcd_putc 0/45 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄ@PRINTF_U_96 0/55 Ram=2
³ ³ ÃÄ@DIV88 0/21 Ram=3
³ ³ ÃÄlcd_putc 0/45 Ram=1
³ ³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄ@DIV88 0/21 Ram=3
³ ³ ÃÄlcd_putc 0/45 Ram=1
³ ³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_putc 0/45 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄlcd_putc 0/45 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄsound_beep 0/73 Ram=7
³ ³ ÃÄ@DIV1616 (Inline) Ram=5
³ ³ ÃÄ@delay_us1 0/17 Ram=1
³ ³ ÀÄ@delay_us1 0/17 Ram=1
³ ÃÄ@PSTRINGCN7_64 0/79 Ram=4
³ ³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ³ ÀÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÃÄ@PRINTF_LU_64 0/99 Ram=9
³ ³ ÀÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÃÄ@PRINTF_LU_64 0/99 Ram=9
³ ³ ÀÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÃÄ@PRINTF_L32U_64 0/94 Ram=12
³ ³ ÃÄ@DIV3232 0/66 Ram=13
³ ³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ³ ÀÄ@DIV3232 0/66 Ram=13
³ ÃÄ@PSTRINGCN7_64 0/79 Ram=4
³ ³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ³ ÀÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÃÄ@delay_ms1 0/20 Ram=1
³ ÃÄsound_beep 0/73 Ram=7
³ ³ ÃÄ@DIV1616 (Inline) Ram=5
³ ³ ÃÄ@delay_us1 0/17 Ram=1
³ ³ ÀÄ@delay_us1 0/17 Ram=1
³ ÃÄ@delay_ms1 0/20 Ram=1
³ ÃÄsound_beep 0/73 Ram=7
³ ³ ÃÄ@DIV1616 (Inline) Ram=5
³ ³ ÃÄ@delay_us1 0/17 Ram=1
³ ³ ÀÄ@delay_us1 0/17 Ram=1
³ ÃÄ@delay_ms1 0/20 Ram=1
³ ÃÄsound_beep 0/73 Ram=7
³ ³ ÃÄ@DIV1616 (Inline) Ram=5
³ ³ ÃÄ@delay_us1 0/17 Ram=1
³ ³ ÀÄ@delay_us1 0/17 Ram=1
³ ÃÄ@delay_ms1 0/20 Ram=1
³ ÃÄsound_beep 0/73 Ram=7
³ ³ ÃÄ@DIV1616 (Inline) Ram=5
³ ³ ÃÄ@delay_us1 0/17 Ram=1
³ ³ ÀÄ@delay_us1 0/17 Ram=1
³ ÃÄ@delay_ms1 0/20 Ram=1
³ ÃÄsound_beep 0/73 Ram=7
³ ³ ÃÄ@DIV1616 (Inline) Ram=5
³ ³ ÃÄ@delay_us1 0/17 Ram=1
³ ³ ÀÄ@delay_us1 0/17 Ram=1
³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄlcd_putc 0/45 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄ@delay_ms1 0/20 Ram=1
³ ³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄ@delay_ms1 0/20 Ram=1
³ ÃÄsound_beep 0/73 Ram=7
³ ³ ÃÄ@DIV1616 (Inline) Ram=5
³ ³ ÃÄ@delay_us1 0/17 Ram=1
³ ³ ÀÄ@delay_us1 0/17 Ram=1
³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÀÄlcd_putc 0/45 Ram=1
³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄ@delay_ms1 0/20 Ram=1
³ ÃÄlcd_gotoxy 0/18 Ram=4
³ ³ ÀÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÃÄlcd_send_byte 0/92 Ram=3
³ ³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ³ ÀÄlcd_send_nibble 0/44 Ram=1
³ ÀÄlcd_send_byte 0/92 Ram=3
³ ÃÄlcd_read_byte (Inline) Ram=3
³ ³ ÃÄlcd_read_nibble 0/49 Ram=2
³ ³ ÀÄlcd_read_nibble 0/49 Ram=2
³ ÃÄlcd_send_nibble 0/44 Ram=1
³ ÀÄlcd_send_nibble 0/44 Ram=1
ÃÄRTCC_isr 0/7 Ram=0
ÀÄTIMER1_isr 0/19 Ram=0
/Designs/Measuring_instruments/GM_counter/SW/PIC16F887/main.h
0,0 → 1,20
#include <16F887.h>
#device adc=10
 
#FUSES NOWDT //No Watch Dog Timer
#FUSES INTRC //Internal RC Osc
#FUSES NOPUT //No Power Up Timer
#FUSES MCLR //Master Clear pin enabled
#FUSES NOPROTECT //Code not protected from reading
#FUSES NOCPD //No EE protection
#FUSES NOBROWNOUT //No brownout reset
#FUSES IESO //Internal External Switch Over mode enabled
#FUSES FCMEN //Fail-safe clock monitor enabled
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
#FUSES NODEBUG //No Debug mode for ICD
#FUSES NOWRT //Program memory not write protected
#FUSES BORV40 //Brownout reset at 4.0V
 
#use delay(clock=8000000)
#use rs232(baud=9600,parity=N,xmit=PIN_B7,rcv=PIN_B6,bits=8)