Search found 217 matches

by alsopb
01 Aug 2009 10:10
Forum: mikroBasic PRO for PIC General
Topic: 52 303 Identifier "Ow_Reset" was not declared test
Replies: 5
Views: 3335

Thanks Max. Your version compiles and flashes OK. It is curious that the manual says goto's and gosubs are still permitted for backwards compatibility. Apparently they don't work in V2.5 Frankly programming without GOTO's is in my opinion contorted. Imagine assembly language without a jump to comman...
by alsopb
31 Jul 2009 16:43
Forum: mikroBasic PRO for PIC General
Topic: 52 303 Identifier "Ow_Reset" was not declared test
Replies: 5
Views: 3335

Thanks reply. Went to library management and "clicked" on onewire library. (How one knows it did anything is beyond me. No message that the library was included or anything) Compiler got further but failed in linking. Also an odd error related to a gosub line. 0 133 Compiled Successfully C:\dloads\t...
by alsopb
31 Jul 2009 14:47
Forum: mikroBasic PRO for PIC General
Topic: 52 303 Identifier "Ow_Reset" was not declared test
Replies: 5
Views: 3335

52 303 Identifier "Ow_Reset" was not declared test

Just installed V2.5. Brought over a program run under Microbasic. 16F676 PIC The above error comment received. Code fragment: ow_Reset(PORTA,5) ' onewire reset signal ow_write(PORTA,5,$CC) ' issue command to DS1820 ow_write(PORTA,5,$44) ' issue command to DS1820 delay_us(120) i = ow_reset(PORTA,5) o...
by alsopb
02 Sep 2008 22:22
Forum: mikroBasic General
Topic: old hardware/bootloader
Replies: 8
Views: 2871

Thanks. Will try that on 7.0.0.2 until I can find MB V7.2 somewhere.

It turns out that I have an old WIN98SE machine with MB2.2 on it.
The bootloader still compiles there. As a last resort, I could FLASH the bootloader on the PIC from there.

Brian
by alsopb
02 Sep 2008 20:27
Forum: mikroBasic General
Topic: old hardware/bootloader
Replies: 8
Views: 2871

Well, the link on ME page to version 7 of MB is really 7.0.0.2 not 7.2. It compiles and flashes some of my existing programs OK. I tried compiling the bootloader for the 16f877A. It is identical to the above listing. This time a "Identifier 'Susart_Init' not defined" error was generated. It also tri...
by alsopb
02 Sep 2008 14:37
Forum: mikroBasic General
Topic: old hardware/bootloader
Replies: 8
Views: 2871

Thanks Charlie. You have come to the rescue again.

Looking for link to version 7.2 of MB. The link in the reflector downloads 7.0.0.2. Is that it? I see the debug version is 7.3.

Brian
by alsopb
02 Sep 2008 00:01
Forum: mikroBasic General
Topic: old hardware/bootloader
Replies: 8
Views: 2871

Yes, the newer version of Mikrobasic is one route.

My only concern is that I'll have to use a new version of PICFLASH that may or may not support an EZPIC3 board

Brian
by alsopb
01 Sep 2008 20:27
Forum: mikroBasic General
Topic: old hardware/bootloader
Replies: 8
Views: 2871

old hardware/bootloader

Time marches on. Recollections get foggy. Some time ago I put an application on a 16F877A. It had a bootloader. I believe I was using MB 2.X at the time. The programmer is an EASYPIC3. Machine is XP-based. Since then I've upgraded to V6.0.0.0, have the application hex file generated. It successfully...
by alsopb
18 May 2008 15:17
Forum: mikroBasic General
Topic: W-0 Array has been split over two banks:
Replies: 11
Views: 5071

Instead of a two dimensional array would two one dimensional arrays work. That may keep them each in a given bank

Brian
by alsopb
27 Feb 2008 16:55
Forum: mikroBasic General
Topic: Problem with a 10W Switch
Replies: 12
Views: 3827

I've had problems with rotary switches -- specifically debounce issues. (Normal pushbuttons and toggle switch debounce in software works just fine.) Not so with rotary switches for some reason. Problems were so bad that I had to add hardware debounce circuitry. Of course, this only happened when one...
by alsopb
22 Jan 2008 19:54
Forum: mikroBasic General
Topic: Arithmetic
Replies: 4
Views: 1958

If you care about the decimal places perhaps it should be 273.15

Brian
by alsopb
13 Jan 2008 03:15
Forum: mikroBasic General
Topic: Voltage level
Replies: 7
Views: 3501

Those resistors probably OK. I was trying to minimize the current.
PIC's have a maximum total device current limit.

Do an experiment. Set the port pin high and measure the voltage with the device attached. See that it is OK.

I haven't a clue about the current the device you're using draws.
by alsopb
11 Jan 2008 17:38
Forum: mikroBasic General
Topic: Voltage level
Replies: 7
Views: 3501

Try your SD card in some other device. I fear you have destroyed it. You can try a level shifting device called resistive divider to drive it. Perhaps 1.2k and 2.2k resistor in series. The output of the PIC goes to the top of the 1.2k, take the output to the SD card from the junction of the two resi...
by alsopb
06 Jan 2008 00:24
Forum: mikroBasic General
Topic: Analog input on PORTA.4/5 problem!
Replies: 9
Views: 4087

Absolutely.

Working from the spec sheet, I'd never get it wrong!
by alsopb
05 Jan 2008 14:04
Forum: mikroBasic General
Topic: Analog input on PORTA.4/5 problem!
Replies: 9
Views: 4087

It would be more instructive to neophytes if you gave the various OPTION_REG, ADCON, TRISX et all settings in binary. It would be easier to look up what they mean on the spec sheets. For example ADCON1= $82 is ADCON1=%1001000 In fact, it makes more sense to code them in the binary representation so ...

Go to advanced search