Search found 21 matches

by motopic
05 Dec 2006 20:28
Forum: mikroC General
Topic: Microchip USB Bootloader?
Replies: 40
Views: 41217

srdjan: This is the kind of stuff I needed for work with the Sparkfun bootloader. So I will try a few more things with that. Maybe. Development is much faster using a bootloader to test code. When I get it working I will buy MEC. We want MEC to support bootloaders of all kinds. Because if we develop...
by motopic
25 Oct 2006 04:23
Forum: mikroC General
Topic: bootloader for 16f88
Replies: 9
Views: 14848

Ok, bootloader hooks up now. The Tool->bootloader connects and sends the file over. #1. Program uploaded never runs tho. #2. Bootloader.hex should just listen for 5 sec and not broadcast 'g's. Use upper asci ctrl bytes. Let the pic reply to the bootloader tool query. This minimizes 'junk' output to ...
by motopic
25 Oct 2006 04:05
Forum: mikroC General
Topic: EEPROM Read/Write - Basic works but MikroC does not.
Replies: 8
Views: 6181

I had to do this many times also, your write ctrl byte is '0xa2' NOT '0xa0'.

Read the datasheet carefully (I had to do this 4 times myself) and write out the binary of your pin config.

Good luck. Joe
by motopic
23 Oct 2006 21:50
Forum: mikroC General
Topic: Are Multiple Soft_I2C_Config() Legal ??
Replies: 3
Views: 3460

Read your docs for the LCD and EEPROM carefully. Each device has an electrically configurable ADDRESS. I2C is a multidrop bus, set each device to a different address, then when you begin writing the first thing you write out is the device address the data is going to/reading from.
by motopic
23 Oct 2006 14:41
Forum: mikroC General
Topic: bootloader for 16f88
Replies: 9
Views: 14848

Hi,

I think I figured these out on my own, the RCSTA and TXSTA are ok, you are defining how the RX/TX will work. I read the 16f88 spec on that.

I think the memory map is ok, but I am not sure, its a lot to go over.

Still never answers the bootloader app query tho...
by motopic
21 Oct 2006 03:30
Forum: mikroC General
Topic: bootloader for 16f88
Replies: 9
Views: 14848

Aw, I can't get it to work. 2 questions: 1. are RCSTA and TXSTA supposed to be 0x18 and 0x98 respectively? 2. do the function 'org 0x000' values depend on having the optimized compiler? At this point I am un-optimized. :) I combined the main and the SUsart code into 1 .c file and compiled it. Having...
by motopic
20 Oct 2006 14:13
Forum: mikroC General
Topic: bootloader for 16f88
Replies: 9
Views: 14848

Hi,

Thanks a lot! I will be testing this tonite after work. I want to understand how it works.

Thanks,
Joe
by motopic
19 Oct 2006 20:22
Forum: mikroC General
Topic: bootloader for 16f88
Replies: 9
Views: 14848

Source came with 6.2 compiler??? Looked to me like MEC made some precompiled libs for Susart and such? I will have to poke around some more and see. I would like to get bootloader working for 16f88, as my HW.programmer is kinda unreliable. I would really like to understand how it works, so as to be ...
by motopic
18 Oct 2006 15:05
Forum: mikroC General
Topic: bootloader for 16f88
Replies: 9
Views: 14848

bootloader for 16f88

Hi ME, Can the MEC bootloader be made to work with 16f88 pic? I tried to change baud setting and memory and recompile, but it errors with libs not found. If I add the #pragma lines from 18f776.c to the 16f88.c will that work? If MEC just had a program offset and reset vector fix, I could use anyones...
by motopic
17 Oct 2006 15:42
Forum: mikroC General
Topic: mikroC Team: Need origin preprocessor command!
Replies: 6
Views: 3079

Bruno, you have a hex translator? Can I try it?

Thanks,
Joe
by motopic
13 Oct 2006 19:05
Forum: mikroC General
Topic: The way to use and create include files
Replies: 2
Views: 1924

1. add #include GPS.h to both files 2. yes, but you are setting different vals in each file... 3. dunno about that one, look it up. 4. yes 5. see #1 Suggest you Google search for some basic C background, specifically scoping rules. If you want TOTO to be visible to everything in your program you nee...
by motopic
13 Oct 2006 03:01
Forum: mikroC General
Topic: mikroC Team: Need origin preprocessor command!
Replies: 6
Views: 3079

This is the translate program I am using...

HEX file translator for Sparkfun Bloader Version 1.0
Jean-Pierre MANDON (2004)
http://www.pictec.org

The error is a popup messagebox with title 'Avirtissement'
Presence de code aux adresses 1,2 et 3

Ok only.
by motopic
12 Oct 2006 22:49
Forum: mikroC General
Topic: mikroC Team: Need origin preprocessor command!
Replies: 6
Views: 3079

Hi, I am using the Sparkfun bootloader, which wants the main prog to start at org 0x004. In CC5x its '#pragma org 4'. When I do org 4 for the main(), a lot oa weird things happen, most noticable is that mikroC reports the program size as 1640 words, but the sparkfun loader reports 2028 words loaded....
by motopic
12 Oct 2006 16:46
Forum: mikroC General
Topic: mikroC Team: Need origin preprocessor command!
Replies: 6
Views: 3079

mikroC Team: Need origin preprocessor command!

To mikroC Team: I need a '#pragma org 4' or similar command so I can use a bootloader. I've tried everyone elses compilers and tools and you guys win on all accounts EXCEPT for the origin thing. I was using some French guys tool 'Translate' to move code inteh hex, but with 6.2.0 it refuses to work a...
by motopic
26 Sep 2006 19:41
Forum: mikroC General
Topic: Soft I2C problem
Replies: 2
Views: 1901

Your control bytes indicate that you have A0 wired to Vcc is that right? Soft_I2C_Read() returns a byte, but you are putting that to PORTD! I think you should create a variable to hold that value. Or maybe you meant to route that to a pin on portd, like PORTD.F0? I had a fair bit of trouble with thi...

Go to advanced search