No changes between revisions
/Designs/MRAKOMER3/DOC/baud_test/SW/GRAF_baud_test.xls
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/MRAKOMER3/DOC/baud_test/SW/baud_test.c
0,0 → 1,53
/**** baud test for IRMRAK ****/
 
#include "baud_test.h"
 
#define HEATING PIN_A2
 
volatile int1 flag_temp;
volatile int8 ostun;
 
#INT_RDA
rs232_handler()
{
char ch;
 
switch (getc())
{
case 'A': setup_oscillator(OSC_4MHZ|OSC_INTRC,++ostun);break;
case 'B': setup_oscillator(OSC_4MHZ|OSC_INTRC,--ostun);break;
case 'C': if (flag_temp) flag_temp = 0;else flag_temp=1;break;
}
}
 
void main()
{
output_low(HEATING); // Heating off
setup_wdt(WDT_2304MS); // Setup Watch Dog
setup_adc_ports(NO_ANALOGS);
setup_adc(ADC_OFF);
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
setup_comparator(NC_NC_NC_NC);
setup_vref(FALSE);
setup_oscillator(OSC_4MHZ|OSC_INTRC,0);
 
delay_ms(1000);
ostun=0;
flag_temp=0;
 
//enable_interrupts(GLOBAL);
//enable_interrupts(INT_RDA);
while(TRUE)
{
while (flag_temp)
{
printf("\nostune\r%d",ostun);
delay_ms(500);
}
putc(0x00);
}
}
 
/Designs/MRAKOMER3/DOC/baud_test/SW/baud_test.h
0,0 → 1,23
#include <16F88.h>
#device adc=8
 
#FUSES NOWDT //Watch Dog Timer
#FUSES INTRC_IO //Internal RC Osc, no CLKOUT
//#FUSES INTRC
//#FUSES XT
#FUSES PUT //Power Up Timer
//#FUSES NOMCLR //Master Clear pin used for I/O
#FUSES NOBROWNOUT //No brownout reset
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
#FUSES NOCPD //No EE protection
#FUSES NOWRT //Program memory not write protected
#FUSES NODEBUG //No Debug mode for ICD
#FUSES NOPROTECT //Code not protected from reading
#FUSES NOFCMEN //Fail-safe clock monitor disabled
#FUSES NOIESO //Internal External Switch Over mode disabled
 
#use delay(clock=4000000)
//#use delay(clock=3686400)
#use rs232(baud=2400,parity=N,xmit=PIN_B5,rcv=PIN_B2,bits=8)//,FORCE_SW)
#use i2c(MASTER,SLOW,sda=PIN_B1,scl=PIN_B4,SMBUS)
 
/Designs/MRAKOMER3/DOC/baud_test/SW/baud_test.hex
0,0 → 1,51
:1000000000308A0006290000FF00030E8301A100D2
:100010007F08A0000A08A8008A01A00E0408A20018
:100020007708A3007808A4007908A5007A08A6003C
:100030007B08A700831383128C308400801E222843
:100040008C1A3528220884002308F7002408F800B9
:100050002508F9002608FA002708FB0028088A006E
:10006000210E8300FF0E7F0E09008A1146280A1018
:100070008A100A1182070A346F3473347434753469
:100080006E3465340D342534643400348C1E4628B7
:100090001A08413A03195328033A03195E28013A12
:1000A000031969286F28AA0A623083168F00831209
:1000B0002A08831690000F0883126F28AA03623063
:1000C00083168F0083122A08831690000F0883126C
:1000D0006F28291C6D2829106E2829146F288C126E
:1000E0008A1122282C308400000803198628013048
:1000F000F800F701F70B7A28F80B79284A30F70057
:10010000F70B802800000000800B772800343308AC
:10011000F801320203188F283208F7009B28F701F4
:100120000830B400B20DF70D330877020318F7005A
:10013000F80DB40B9228003420302D1E3030AE0064
:100140002C08F700AC1FAB28F709F70A7708AC00BA
:100150002D30AE00AD172C08B2006430B3008720FC
:100160007708AC0030307807AF002C08B2000A30B6
:10017000B300872030307707B10030307807B00007
:100180002E08F700AD1DC628AD1F2D112D1AD3283E
:10019000AD1FEE282D19EE287708AF00AD18EE2818
:1001A0007708B000EE2830302F02031DEE287708C4
:1001B000AF002030AE00AD1DE1282D11AD14AD1FF4
:1001C000AD1030303002031DEE287708B00020302B
:1001D000AF00AD1DE128AD10AD1F2D102D1DF42871
:1001E0002E080C1EF1289900AD1CFA282F080C1EB1
:1001F000F72899002D1C002930080C1EFD289900B5
:1002000031080C1E012999008A11722984011F30BE
:100210008305603083168F001930990022309800D2
:1002200090308312980083161F129F121B0880398A
:100230009B0007309C000511831205110F30F70059
:1002400007308101813084000008F03907388000D0
:1002500064000008F739F719F03977048000831635
:100260001F129F121B0880399B0083121F108316D8
:100270000108C73908388100831290010030F80066
:10028000920000308316920007309C00050803306E
:10029000F700F70B49291C0883120D1383169D01E3
:1002A00062308F0090010F0804308312AB00FA30E7
:1002B000AC007220AB0B5729AA012910291C7A29FE
:1002C000AB012B083720AB0AF70077080C1E662914
:1002D000990008302B02031D61292A08AC001F3049
:1002E000AD009C280230AB00FA30AC007220AB0BA2
:1002F00074295E2900300C1E7B2999005E29630059
:04400E00303FFC3F04
:00000001FF
;PIC16F88