Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 466 matches
www.mcselec.com Forum Index
Author Message
  Topic: Passing Data from the bootloader to the main program
njepsen

Replies: 6
Views: 577

PostForum: BASCOM-AVR   Posted: Sat Feb 17, 2024 11:29 pm   Subject: Passing Data from the bootloader to the main program
@EDC Where does this come from? i have not seen it before.

"Updateeeprom=1"
  Topic: 'Continue' in an IF END IF loop
njepsen

Replies: 10
Views: 1008

PostForum: BASCOM-AVR   Posted: Tue Dec 12, 2023 3:34 am   Subject: 'Continue' in an IF END IF loop
The examples don't show the use of CONTINUE with an if - end if loop. Is such use intended?


If A = B then
'do something
continue
elseif B = C then
'do something
elseif D = E then ...
  Topic: Problem with bootloader and power control of SD card
njepsen

Replies: 7
Views: 3236

PostForum: BASCOM-AVR   Posted: Fri Jun 16, 2023 1:47 am   Subject: Problem with bootloader and power control of SD card
Thank you Mark and MWS for taking time to look at this. You were both correct, and the issue was very simple: I had 2 copies of config_mmcsd-hc.bas, one in the main dir and one in my bootload dir. On ...
  Topic: Problem with bootloader and power control of SD card
njepsen

Replies: 7
Views: 3236

PostForum: BASCOM-AVR   Posted: Mon Jun 12, 2023 10:44 pm   Subject: Problem with bootloader and power control of SD card
Hi Mark
I dont think that is the problem because I'm using hardware SPI and those other settings are for SW SPI


I've checked my hardware and the hardware is correct:

PB3 (pin 43) SD power ...
  Topic: Problem with bootloader and power control of SD card
njepsen

Replies: 7
Views: 3236

PostForum: BASCOM-AVR   Posted: Mon Jun 12, 2023 7:40 am   Subject: Problem with bootloader and power control of SD card
I have done a new PCB layout which allows me to power cycle the 3.3v to the SD card, using a n Ch FET (via a transister invertor) connected to PortB.3. ( reset portb.3 turns the 3.3v ON)
However when ...
  Topic: no icons are visible when programming.
njepsen

Replies: 8
Views: 1724

PostForum: BASCOM-AVR   Posted: Thu Feb 16, 2023 5:07 am   Subject: no icons are visible when programming.
Hello Mark,
I have 4 programmers. I have just now checked all 4 with a small flash LED test program I use to test boards.
I'm using win10 and the Atmega1284p

1. EMBUD
Thi ...
  Topic: no icons are visible when programming.
njepsen

Replies: 8
Views: 1724

PostForum: BASCOM-AVR   Posted: Mon Feb 13, 2023 9:13 pm   Subject: no icons are visible when programming.
I have exactly the same problem, and am using win 11 with several programmers, all of which have blank squares where the icons used to be. I just put up with it, and remember which empty square does w ...
  Topic: Call & parentheses
njepsen

Replies: 3
Views: 1009

PostForum: BASCOM-AVR   Posted: Thu Jan 05, 2023 12:25 am   Subject: Call & parentheses
Not quite sure what you mean Mark. Are saying that with a declare in place,

call subroutine(passed_variable)

and

subroutine(passed_variable)

will both generate th ...
  Topic: Call & parentheses
njepsen

Replies: 3
Views: 1009

PostForum: BASCOM-AVR   Posted: Wed Jan 04, 2023 9:34 pm   Subject: Call & parentheses
I have been chasing what is looking like an intermittent x1 per day string buffer overflow, and found a small number of instances in other parts of the code where I had done this.

Write_err_message ...
  Topic: How to read output PORT status
njepsen

Replies: 4
Views: 1163

PostForum: BASCOM-AVR   Posted: Wed Sep 21, 2022 12:39 am   Subject: How to read output PORT status
Thanks for your input Mark and MWS. Appreciated. I of course have looked at the data sheet, but the two examples given are in assembler and C , neither of which is my forte.
Confusingly the read por ...
  Topic: How to read output PORT status
njepsen

Replies: 4
Views: 1163

PostForum: BASCOM-AVR   Posted: Tue Sep 20, 2022 7:24 am   Subject: How to read output PORT status
I have some code that looks like this:



my_powerpin Alias PORTA.7
Config my_powerpin = Output
port_status alias PINA.7 'used to read ...
  Topic: sysec()
njepsen

Replies: 4
Views: 1094

PostForum: BASCOM-AVR   Posted: Sun Aug 07, 2022 11:52 pm   Subject: sysec()
Thanks MWS. Great help.
neil
  Topic: sysec()
njepsen

Replies: 4
Views: 1094

PostForum: BASCOM-AVR   Posted: Sun Aug 07, 2022 7:05 am   Subject: sysec()
Thanks for your input mws. Valuable as usual.



But it's well described, why the uncertainty?
Quote:
1. Without any parameter. The internal Time and Date of SOFTCLOCK (_sec, _min, _hour, _day ...
  Topic: sysec()
njepsen

Replies: 4
Views: 1094

PostForum: BASCOM-AVR   Posted: Sat Aug 06, 2022 6:17 am   Subject: sysec()
I am unsure on the use of the var = sysec() commands set.
In the code below, several times per day, I get the time from a server and use the mm,hh,ss,DD,MM,YY variables to update time$ and date$. The ...
  Topic: driveinit() & initfilesystem() problem resolved
njepsen

Replies: 1
Views: 4358

PostForum: AVR-DOS   Posted: Tue Aug 02, 2022 8:08 am   Subject: driveinit() & initfilesystem() problem resolved
After some more testing and re-reading the docs several times, the following code runs without creating unexplained errors.


'****************************************
$regfile = "m1284pdef ...
 
Page 1 of 32 Goto page 1, 2, 3 ... 30, 31, 32  Next
All times are GMT + 1 Hour
Jump to: