/Modules/PIC/PIC18F8xTQ8001A/SW/PIC18F87J60/main.bak
0,0 → 1,29
#include "C:\Users\kaklik\Documents\svnkaklik\C\PIC\test\PIC18F87J60\main.h"
 
 
#define LED PIN_A5 //CHANGE PIN_XX TO YOUR LED PIN NUMBER, EX: PIN_A5
 
void main()
{
 
setup_adc_ports(NO_ANALOGS|VSS_VDD);
setup_adc(ADC_CLOCK_DIV_2|ADC_TAD_MUL_0);
setup_spi(SPI_SS_DISABLED);
setup_wdt(WDT_OFF);
setup_timer_0(RTCC_INTERNAL);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
setup_timer_4(T4_DISABLED,0,1);
setup_ccp1(CCP_OFF);
setup_comparator(NC_NC_NC_NC);
setup_vref(FALSE);
 
//Example blinking LED program
while(true){
output_low(LED);
delay_ms(1000);
output_high(LED);
delay_ms(1000);
}
 
}
/Modules/PIC/PIC18F8xTQ8001A/SW/PIC18F87J60/main.c
0,0 → 1,29
#include "main.h"
 
 
#define LED PIN_A5 //CHANGE PIN_XX TO YOUR LED PIN NUMBER, EX: PIN_A5
 
void main()
{
 
setup_adc_ports(NO_ANALOGS|VSS_VDD);
setup_adc(ADC_CLOCK_DIV_2|ADC_TAD_MUL_0);
setup_spi(SPI_SS_DISABLED);
setup_wdt(WDT_OFF);
setup_timer_0(RTCC_INTERNAL);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
setup_timer_4(T4_DISABLED,0,1);
setup_ccp1(CCP_OFF);
setup_comparator(NC_NC_NC_NC);
setup_vref(FALSE);
 
//Example blinking LED program
while(true){
output_low(LED);
delay_ms(1000);
output_high(LED);
delay_ms(1000);
}
 
}
/Modules/PIC/PIC18F8xTQ8001A/SW/PIC18F87J60/main.h
0,0 → 1,18
#include <18F87J60.h>
#device adc=8
 
#FUSES NOWDT //No Watch Dog Timer
#FUSES WDT128 //Watch Dog Timer uses 1:128 Postscale
#FUSES HS //High speed Osc (> 4mhz for PCM/PCH) (>10mhz for PCD)
#FUSES NODEBUG //No Debug mode for ICD
#FUSES NOXINST //Extended set extension and Indexed Addressing mode disabled (Legacy mode)
#FUSES STVREN //Stack full/underflow will cause reset
#FUSES NOPROTECT //Code not protected from reading
#FUSES FCMEN //Fail-safe clock monitor enabled
#FUSES IESO //Internal External Switch Over mode enabled
#FUSES PRIMARY //Primary clock is system clock when scs=00
#FUSES ECCPE //Enhanced CCP PWM outpts multiplexed with RE6 thorugh RE3
#FUSES ETHLED //Ethernet LED enabled
 
#use delay(clock=25000000)
 
/Modules/PIC/PIC18F8xTQ8001A/SW/PIC18F87J60/main.hex
0,0 → 1,18
:1000000016EF00F0EA6A060EE96EEF500EE0080EF9
:10001000016E006A002EFED7012EFBD7190E006E6E
:10002000002EFED700D0EF2EF2D7000CF86AD09E3B
:10003000EA6AE96AC150C00BC16E070EB46EC150C6
:10004000C00B0F09C16EC050C00BC06EC09EC280F5
:10005000C28EC282C2B2FED7C29EC69A949A9488B9
:100060009496010EC66E000EC76ED190800ED56EAE
:10007000CD6A000ECA6E000ECB6E766E000E776EE5
:100080009484BD6A796AB66A070EB46E9750976E0B
:10009000140E006E002EFED70000B450A19CB56A6D
:1000A000929A899A040E056EFA0E066EABDF052E43
:1000B000FBD7929A898A040E056EFA0E066EA2DFAD
:0800C000052EFBD7EDD703006C
:020000040001F9
:08FFF800A004C407F807000093
:00000001FF
;PIC18F87J60
;CRC=6C26 CREATED="03-9-11 14:51"
/Modules/PIC/PIC18F8xTQ8001A/SW/PIC18F87J60/main.pjt
0,0 → 1,24
[PROJECT]
Target=C:\Users\kaklik\Documents\svnkaklik\C\PIC\test\PIC18F87J60\main.hex
Development_Mode=
Processor_Text=PIC18F87J60
ToolSuite=CCS
Processor=0xC760
[C:\Users\kaklik\Documents\svnkaklik\C\PIC\test\PIC18F87J60\main]
Type=4
Path=
FileList=
BuildTool=
OptionString=
AdditionalOptionString=
[mru-list]
1=C:\Users\kaklik\Documents\svnkaklik\C\PIC\test\PIC18F87J60\main.c
[Windows]
0=0000 %S 0 0 796 451 3 0
[Units]
Link=0
Count=1
1=C:\Users\kaklik\Documents\svnkaklik\C\PIC\test\PIC18F87J60\main
[Opened Files]
1=main.c
2=