Author |
Message |
Topic: Embed bin file (with slave IC firmware) into PIC hex |
silelis
Replies: 8
Views: 19184
|
Forum: General CCS C Discussion Posted: Thu May 23, 2019 12:17 pm Subject: Embed bin file (with slave IC firmware) into PIC hex |
Great news. :-) |
Topic: Embed bin file (with slave IC firmware) into PIC hex |
silelis
Replies: 8
Views: 19184
|
Forum: General CCS C Discussion Posted: Thu May 23, 2019 6:30 am Subject: Embed bin file (with slave IC firmware) into PIC hex |
I have modified program so now it is writing to ".c" file directly. If Someone needs.
#include <cassert>
#include <iostream>
#include <fstream>
#include <cstdlib ... |
Topic: Embed bin file (with slave IC firmware) into PIC hex |
silelis
Replies: 8
Views: 19184
|
Forum: General CCS C Discussion Posted: Mon May 06, 2019 6:41 am Subject: Embed bin file (with slave IC firmware) into PIC hex |
If someone need it, here is a simple C program (for PC/ MAC/ other desktop) that converts bin to array.
Do the same as WinHEX.
#include <stdio.h>
#include <assert.h>
int main ... |
Topic: Embed bin file (with slave IC firmware) into PIC hex |
silelis
Replies: 8
Views: 19184
|
Forum: General CCS C Discussion Posted: Tue Apr 30, 2019 5:10 am Subject: Embed bin file (with slave IC firmware) into PIC hex |
Great tool. Thank You for that.
My bin2C_char_table is like this. And this is correct. (y)
char data[940] = {
0x03, 0x00, 0x00, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ... |
Topic: Embed bin file (with slave IC firmware) into PIC hex |
silelis
Replies: 8
Views: 19184
|
Forum: General CCS C Discussion Posted: Mon Apr 29, 2019 5:57 am Subject: Embed bin file (with slave IC firmware) into PIC hex |
Hello,
I am developing DAB+ tuner based on si468x chip.
There is
rom char
Does CCS allow to attach/include bin into PIC hex automatically? |
Topic: #FUSE NOMCLR question |
silelis
Replies: 5
Views: 16142
|
Forum: General CCS C Discussion Posted: Fri Oct 12, 2018 11:07 pm Subject: #FUSE NOMCLR question |
I agree that RAM and registers can not hold data without power.
Because there is no MCLR pin I added the the beginning delay_ms(1500); but next command output_high(pin_b5); (as tested) is executed ... |
Topic: #FUSE NOMCLR question |
silelis
Replies: 5
Views: 16142
|
Forum: General CCS C Discussion Posted: Fri Oct 12, 2018 1:01 pm Subject: #FUSE NOMCLR question |
I have question about MCLR pin.
As I understand this pin is to make PIC work more stable during "power on" but what is happening when I use #FUSE NOMCLR.
If I use MCLR pin during power ... |
Topic: How to pass const array to function |
silelis
Replies: 8
Views: 22752
|
Forum: General CCS C Discussion Posted: Tue Oct 09, 2018 10:00 am Subject: How to pass const array to function |
I have also question about "#device PASS_STRING=IN_RAM".
This pseudo pointer and virtual constant "is" during function execution only or during all program execution?
I mean ... |
Topic: How to pass const array to function |
silelis
Replies: 8
Views: 22752
|
Forum: General CCS C Discussion Posted: Sun Oct 07, 2018 10:53 am Subject: How to pass const array to function |
I see. So I made something wrong. Once again thank You for Your time and for help. :-) |
Topic: How to pass const array to function |
silelis
Replies: 8
Views: 22752
|
Forum: General CCS C Discussion Posted: Sat Oct 06, 2018 4:27 am Subject: How to pass const array to function |
I have decided to use second way. "rom char".
It did not work directly. To access rom data it is required to use read_program_eeprom.
The program looks like:
void function_with_co ... |
Topic: How to pass const array to function |
silelis
Replies: 8
Views: 22752
|
Forum: General CCS C Discussion Posted: Thu Oct 04, 2018 10:28 am Subject: How to pass const array to function |
Hello,
For some reason I have quite big char array that is not changing so I want them to be const array. But I have problem with passing it to function.
Normally if this array is variable it is ... |
Topic: [SOLVED] internal oscillator with PIC18F45K80 |
silelis
Replies: 44
Views: 87277
|
Forum: General CCS C Discussion Posted: Fri Oct 27, 2017 11:20 am Subject: [SOLVED] internal oscillator with PIC18F45K80 |
I have made every code corrections as You advised.
Any other suggestions?
Code works perfectly with 57600 on FT232 communication but don't work with this mp3.
Alco mp3 communicates perfectly ... |
Topic: [SOLVED] internal oscillator with PIC18F45K80 |
silelis
Replies: 44
Views: 87277
|
Forum: General CCS C Discussion Posted: Mon Oct 23, 2017 11:07 pm Subject: [SOLVED] internal oscillator with PIC18F45K80 |
251.....
No.
Using the code as posted, the buffer size _must_ be a binary size. 2, 4, 8, 16, 32, 64, 128 etc. bytes. It must _not_ be an odd size like 251 bytes.
This has been covered here hu ... |
Topic: [SOLVED] internal oscillator with PIC18F45K80 |
silelis
Replies: 44
Views: 87277
|
Forum: General CCS C Discussion Posted: Mon Oct 23, 2017 2:00 pm Subject: [SOLVED] internal oscillator with PIC18F45K80 |
Ok.
So from the beginning.
Software:
main.h
#include <18F4520.h>
#device ADC=10
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay (crystal=20MHz, clock=20MHz,fast_start) //to ... |
Topic: [SOLVED] internal oscillator with PIC18F45K80 |
silelis
Replies: 44
Views: 87277
|
Forum: General CCS C Discussion Posted: Mon Oct 23, 2017 12:53 pm Subject: [SOLVED] internal oscillator with PIC18F45K80 |
Hello once again,
I have tested it with BSS138 LLC and 14.7456 MHz crystal.
With this crystal even worse because the answer is:
??jUIQf?.3
For #use delay (crystal=14.7456MHz, clock=58.98 ... |
|