Search found 57 matches

by cgagner
20 Feb 2017 18:04
Forum: mikroBasic PRO for PIC General
Topic: PIC10F320/LF320 delay_ms() completly erratic.
Replies: 3
Views: 2576

Re: PIC10F320/LF320 delay_ms() completly erratic.

Yes, the clock setting was set in General project settings (Edit Project) before each build.
by cgagner
19 Feb 2017 17:26
Forum: mikroBasic PRO for PIC General
Topic: PIC10F320/LF320 delay_ms() completly erratic.
Replies: 3
Views: 2576

PIC10F320/LF320 delay_ms() completly erratic.

Hi, Using MikroBasic or MikroC, Version 7.01, if I choose any clock other than 8MHz the delay generated is a lot faster. For instance, at 8MHz, a one sec delay is pretty close, at 31KHz, the ms as to be set around 252000ms to get around one second delay. I was able to find a programmer(UPP628) to pr...
by cgagner
31 Jan 2016 01:04
Forum: mikroBasic PRO for PIC General
Topic: pic18f15j11 bootloader
Replies: 1
Views: 1422

pic18f15j11 bootloader

Is bootloader programming possible with the J type ?
by cgagner
16 Mar 2014 23:46
Forum: mikroBasic PRO for PIC General
Topic: PIC18F25J11 WUE example
Replies: 1
Views: 1215

PIC18F25J11 WUE example

Hi,
I have been trying to setup an interrupt on eusart1 in sleep mode. Is there some working WUE_bit example available?
by cgagner
16 Sep 2013 00:40
Forum: mikroBasic PRO for PIC General
Topic: pic18fxxJ11 internal rtc
Replies: 1
Views: 1076

pic18fxxJ11 internal rtc

greetings,
I need help in setting internal rtc on Pic18F25J11.
So far, my rtc does not seems to be running.
I have been reading and rereading... to no avail.
I would appreciate some reference working codes.
many thanks
by cgagner
26 Jul 2013 18:53
Forum: mikroBasic PRO for PIC General
Topic: PIC18F25J11 no interrupts
Replies: 3
Views: 2118

Re: PIC18F25J11 no interrupts

Hi,
Problem solved.
I did not made pins used on PORTA as digital. (setting ANCON0... did the final job). Works as expected now.
Thanks for looking and rereading the example as suggested by ME did help.
CG
by cgagner
24 Jul 2013 15:22
Forum: mikroBasic PRO for PIC General
Topic: PIC18F25J11 no interrupts
Replies: 3
Views: 2118

Re: PIC18F25J11 no interrupts

Hi, It will not detect the interrupts. I have been looking at your example but could not find where the error/omission was. I can assure you that I have had success in the past with numerous other mcu's (16F, 18F), but this pic uses some new ways of setting so many things that I must have skip somet...
by cgagner
23 Jul 2013 16:21
Forum: mikroBasic PRO for PIC General
Topic: PIC18F25J11 no interrupts
Replies: 3
Views: 2118

PIC18F25J11 no interrupts

Hi, I am trying to setup interruptions on PORTA.1 with no success after hours (days) of searching and reading for the correction. I want to use INTRC (31kHz), in sleep mode. INT2 on PORTA.1 and output on PORTA.2 Your help will much appreciated. Thanks. My code: program rtclog ' programme test ' Decl...
by cgagner
12 Jan 2013 18:30
Forum: mikroBasic PRO for PIC General
Topic: pic18f13k22 bootloader
Replies: 3
Views: 1664

Re: pic18f13k22 bootloader

Hi, After a good night sleep... I remembered that I had to add: osccon.6 = 0 ' Pour valeurs de délais correctes... osccon.5 = 0 ' ... sous INTOSC... osccon.4 = 0 ' ... de 31Kz. in my program to get it to run properly so, I added those lines in boot_test.mbas after the line: OrgAll(0x1D0C) and I got ...
by cgagner
11 Jan 2013 14:38
Forum: mikroBasic PRO for PIC General
Topic: pic18f13k22 bootloader
Replies: 3
Views: 1664

Re: pic18f13k22 bootloader

Hi, Here is what I had done: Bootloader\P18\8K\... ran boot_test.mbppi in boot_test.mbas: change to: uart1_init(300) file boot18_8k.mbas included in project. Edit project : Oscillator Selection = Internal RC oscillator, MCU name = PiC18F13K22, Oscillator frequ. 0.031000. Compiled and programmed the ...
by cgagner
10 Jan 2013 23:26
Forum: mikroBasic PRO for PIC General
Topic: pic18f13k22 bootloader
Replies: 3
Views: 1664

pic18f13k22 bootloader

Hi, I am trying to use a bootloader with an int osc of 31kHz. My program already uses serial Rs232 at 300 baud but I can't see what needs to be done for the boot loader to communicate with the pic. I have set the baud rate to 300 in the bootloader program. Is this possible with such a slow clock? Th...
by cgagner
26 Nov 2012 16:05
Forum: mikroBasic PRO for PIC General
Topic: pic18f13k22 usart interrupt example
Replies: 1
Views: 1397

Re: pic18f13k22 usart interrupt example

I found a very valuable set of files in libstock: "Interrupts on PIC 18F45K22". Easily adaptable to various pics. Many thanks to Mikroelektronika Teams.

CG
by cgagner
24 Nov 2012 00:45
Forum: mikroBasic PRO for PIC General
Topic: pic18f13k22 usart interrupt example
Replies: 1
Views: 1397

pic18f13k22 usart interrupt example

Hi,
Is there an example code to use interrupts with (sleep) idle mode?

Thanks
by cgagner
20 Nov 2012 03:25
Forum: mikroBasic PRO for PIC Beta Testing
Topic: PIC18F13K22 IO problems
Replies: 2
Views: 4045

Re: PIC18F13K22 IO problems

Many thanks for a very fast and constructive answer. All is working fine.
Claude Gagner
by cgagner
20 Nov 2012 00:58
Forum: mikroBasic PRO for PIC Beta Testing
Topic: PIC18F13K22 IO problems
Replies: 2
Views: 4045

PIC18F13K22 IO problems

Hi, I have this very simple code that does not work. If I access PORTA.0 directly it works fine but going trough an IF bloc, it does not. I am sure I must be over looking some evident missing something. I have been reading all I could in the PIC's data sheets, internet, etc. EasyPic7 program MyProje...

Go to advanced search