Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 1546 matches
www.mcselec.com Forum Index
Author Message
  Topic: Low(s) and High(s) functions
i.dobson

Replies: 4
Views: 194

PostForum: BASCOM-AVR   Posted: Fri May 15, 2020 8:24 am   Subject: Low(s) and High(s) functions
Hi,

Maybe you could use an overlay

Dim Value As Word
Dim Lo As Byte At Value Overlay
Dim Hi As Byte At Value + 1 Overlay

Note High and Low are functions in Bascom AVR (Z = High(i) works).
...
  Topic: M1284P Odd Reset Issue
i.dobson

Replies: 20
Views: 374

PostForum: BASCOM-AVR   Posted: Tue May 12, 2020 6:21 am   Subject: M1284P Odd Reset Issue
Hi,

Just try adding an external pullup to the reset pin, if the atmel powers up correctly when the JTAGICE3 is plugged in I'd guess that there's a bit of noise on the reset pin. Without seeing yout ...
  Topic: atmega328pb bootloader
i.dobson

Replies: 4
Views: 279

PostForum: BASCOM-AVR   Posted: Tue Nov 26, 2019 12:37 pm   Subject: atmega328pb bootloader
Hello,

have a look at the data sheet for you CPU. Most AVR's have fuse bits that define the maximum size of the bootloader/the start address for the bootloader.

Your main application cannot be s ...
  Topic: atmega328pb bootloader
i.dobson

Replies: 4
Views: 279

PostForum: BASCOM-AVR   Posted: Mon Nov 25, 2019 9:55 pm   Subject: atmega328pb bootloader
Hi,

Read the data sheet. The bootloader "sits" at the top end of the Flash Memory (in last few KB).

You download the bootloader code to the AVR, the first 30Kb or so are empty, with the bootload ...
  Topic: Issue with 2.42" SSD1306 and Glcdssd1306-i2c
i.dobson

Replies: 2
Views: 247

PostForum: BASCOM-AVR   Posted: Mon Nov 25, 2019 6:53 pm   Subject: Issue with 2.42" SSD1306 and Glcdssd1306-i2c
Hi,

Looks as if i2c pullups are already installed (R3/R4).

Does the display respond to a i2cbus scan? Something like:


For Temp_byte = 0 To 254 Step 2 'Scan every ...
  Topic: ERROR - CODE EXPLORE
i.dobson

Replies: 10
Views: 399

PostForum: BASCOM-AVR   Posted: Mon Nov 18, 2019 7:51 pm   Subject: ERROR - CODE EXPLORE
Hi,

Just compile the code and see what Errors the Compiler Displays.

The code Explorer/Errors is very sensitive and Displays alot of false positives.

Regards
Ian Dobson
  Topic: err 93 in shift function
i.dobson

Replies: 1
Views: 182

PostForum: BASCOM-AVR   Posted: Mon Nov 18, 2019 10:58 am   Subject: err 93 in shift function
Read the help text. Theres no , infront of the variable

SHIFT var , LEFT/RIGHT[ , shifts] [,SIGNED]

Regards
Ian Dobson
  Topic: Binary file compiled with older version Bascom (quite old ac
i.dobson

Replies: 6
Views: 372

PostForum: BASCOM-AVR   Posted: Sat Oct 19, 2019 8:54 pm   Subject: Binary file compiled with older version Bascom (quite old ac
Hi,

What do mean with " doesn't seem to run properly"?

If the code that you write verifies than it's exactly the same code. The only Thing could be a small Change to the Hardware or maybe the fu ...
  Topic: barre code reader et FT232rl how to use ?
i.dobson

Replies: 5
Views: 217

PostForum: BASCOM-AVR   Posted: Thu Oct 17, 2019 6:41 pm   Subject: barre code reader et FT232rl how to use ?
Hi JP,

I don't think that'll work. Your Barcode Reader is a USB slave device that Needs to connect to a USB Host (In you test your PC). The FT232rl is also a USB slave.

If you really want to do ...
  Topic: Bascom ADXL345 via IC -no response by device
i.dobson

Replies: 2
Views: 220

PostForum: BASCOM-AVR   Posted: Fri Sep 27, 2019 7:47 pm   Subject: Bascom ADXL345 via IC -no response by device
Hi,

I've had a quick look at your code and I can't see where you configure and initalise the i2c bus.

You Need to include something like this to Setup the i2c bus before you use it:


Config ...
  Topic: SD card hardware SPI problems
i.dobson

Replies: 13
Views: 607

PostForum: AVR-DOS   Posted: Wed Aug 14, 2019 9:42 pm   Subject: SD card hardware SPI problems
Hi,

Glad to be of Service.

I've seen afew other things in you Software that I'm not sure if they'll work the way you think, I'll look at the code again when I've had a sleep.

Regards
Ian Dob ...
  Topic: SD card hardware SPI problems
i.dobson

Replies: 13
Views: 607

PostForum: AVR-DOS   Posted: Wed Aug 14, 2019 9:25 pm   Subject: SD card hardware SPI problems
Hi,

Looking in you code your defining a constant "YES" and YES is also used in the CONFIG SPI command.

Deleting the Definition from "M1010-101 Constants.bas" the code compiles.

Regards
Ian D ...
  Topic: Destroy memory
i.dobson

Replies: 7
Views: 415

PostForum: BASCOM-AVR   Posted: Sun Aug 11, 2019 7:14 am   Subject: Destroy memory
Hi,

Why not just have a look at the bootloader code, there's an example of writing to Flash.

Regards
Ian Dobson
  Topic: BASCOM-AVR 2082
i.dobson

Replies: 9
Views: 951

PostForum: BASCOM-AVR   Posted: Mon Aug 05, 2019 7:26 pm   Subject: BASCOM-AVR 2082
Thank, very nice.

I've just recompiled one of my old programs (written for 2.0.7.4) and it worked first time without any modifications.

The only Problem I've found is when I try and open the his ...
  Topic: AVR Dos with a SDHC card in HW SPI mode on a atmega1284p
i.dobson

Replies: 15
Views: 2286

PostForum: AVR-DOS   Posted: Tue Jun 11, 2019 6:38 pm   Subject: AVR Dos with a SDHC card in HW SPI mode on a atmega1284p
Hi JP,

I'll have a look when I get back home, which should be next Weekend. This Project is 7 years old so I'm not sure if I still have the code (I never finished to project).

Regards
Ian Dobso ...
 
Page 1 of 104 Goto page 1, 2, 3 ... 102, 103, 104  Next
All times are GMT + 1 Hour
Jump to: