-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path16f88-test1-4mhz.json
24 lines (24 loc) · 1.54 KB
/
16f88-test1-4mhz.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
"cpufreq": 4,
"initJALCode": ";\n; for 16F88\n;\n-- initJALCode\n\ninclude print\ninclude delay\n\nconst serial_hw_baudrate = 19200\ninclude serial_hardware\n\nif defined(serial_sw_init) == true then\n -- use software usart interface\n alias debug_out is serial_sw_data\nelse\n -- use hardware usart interface\n alias debug_out is serial_hw_data\nend if\n\nprocedure print(byte in str[]) is\n print_string(debug_out,str)\nend procedure\n\nprocedure println(byte in str[]) is\n debug_out = \"\\r\"\n debug_out = \"\\n\"\n print(str)\nend procedure\n\n-- initialize PIC\n-- set OSCCON if needed\nif target_clock == 4_000_000 then\n OSCCON = 108 -- 4 mhz for 16F88\nend if\nif target_clock == 8_000_000 then\n OSCCON = 124 -- 8 mhz for 16F88\nend if\n\nanalog_off()\nenable_digital_io() -- make all pins digital I/O\n\nif defined(serial_hw_init) == true then\n serial_hw_init()\nend if\n\ndelay_1ms(300)\nprintln(\"Start program \")\nif target_clock == 4_000_000 then\n print(\"4 MHz\")\nend if\nif target_clock == 8_000_000 then\n print(\"8 MHz\")\nend if\nprintln(\"\\r\\n\")\n\n",
"inittmr0": 6,
"picmodel": 0,
"prescaler": 2,
"task_list": [
{
"body": "println(\"Task 1\")",
"name": "Task 1",
"period": 1000.0
},
{
"body": "println(\"Task 2\")",
"name": "Task 2",
"period": 1500.0
},
{
"body": "println(\"Task 3\")",
"name": "Task 3",
"period": 2000.0
}
]
}