Main Menu
Counter
This page today ...
total: 0
unique: 0

This page ever ...
total: 206
unique: 137

Site ...
total: 3142
unique: 1587
Online
  • Guests: 2
  • Members: 0
  • Newest Member: ole
  • Most ever online: 47
    Guests: 47, Members: 0 on Wednesday 21 February 2018 - 23:52:15
Chatbox
You must be logged in to post comments on this site - please either log in from the Login box or from here.If you are not registered click here to signup.


bullet Kim
1 year ago
test
Royalsystems blog

MCS Electronics Forum

  • Share your working BASCOM-AVR code here : Fast library for SSD1289 LCD + Proteus Model : REPLY



    Hello,

    Many thanks for library.

    Just little feedback:
    I have tested the saintsmart shield with the demo of arduino code, works.
    I have tested (only display), the code @ Nov 06, 2016 12:21 am, works.
    I have create new shield using the same schematic of saintsmart*, i have just added FET for backlight.
    I test my new shield with arduino demo code, works.
    I test with code @ Nov 06, 2016 12:21 am, not works !!!!
    I have modified the library with the code from last post mkcreta, it's works.

    Thanks
    Olivier
    * Stupid shield, not possible to get orther port....

  • BASCOM-AVR : SD read/write error : REPLY



    Hi Neil,
    My memory of all the steps needed to get an SD card going are long gone. And in any case I used them in simple SPI mode, so all those advanced access settings are different.

    The repeated error 241 at initfilesystem is a bit odd, you should not get that, but I dont know if its significant.

    Somehow I doubt really rare errors like you get are due to code, except possibly a marginal timing issue.

    I would be more suspicious of power supply glitches. You do know that the cards themselves draw high pulse currents during the write cycles, up in the several 100 mA region ? That can cause problems with supplies. Even 1000 uF bypass may not be enough, when you work out the voltage drop over the current pulse time. You need very "stiff" regulators. FETS to switch the output can cause the same problems, its safer to switch the input side, if you go back to that idea.

  • BASCOM-AVR : SD read/write error : REPLY



    Thanks Adrian,
    Unfortunately in the latest population of boards, i cannot cycle the SD card power. On older boards I had a FET that allowed me to do this but (foolishly) decided it was not necessary. Because this issue is so intermittent, its hard to fault find, and I was hoping someone would spot an issue with my code. SD cards for me are a bit of a black art.

  • BASCOM-AVR : SD read/write error : REPLY



    Reaching back into dark history...

    I too had rare problems getting SD cards to respond. Maybe not the same failure, but effectively preventing access. My solution at the time was to use a card supply regulator which could be enabled and disabled by a processor port pin.

    Never had any problems after that, but I have no idea whether the recovery cycle was ever tripped in the field. What one could have done was to log a failure to the card, after getting access back, but I never thought of that, and in any case I only very rarely had access to the cards once installed.

  • BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY



    happy to help KenHorse...

  • BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY



    [quote:3478a5d77f="six1"]made a loop for month and result is:

    Search: repetition #3 of Sunday in 1-2019 is 20-1-2019
    Search: repetition #3 of Sunday in 2-2019 is 17-2-2019
    Search: repetition #3 of Sunday in 3-2019 is 17-3-2019
    Search: repetition #3 of Sunday in 4-2019 is 21-4-2019
    Search: repetition #3 of Sunday in 5-2019 is 19-5-2019
    Search: repetition #3 of Sunday in 6-2019 is 16-6-2019
    Search: repetition #3 of Sunday in 7-2019 is 21-7-2019
    Search: repetition #3 of Sunday in 8-2019 is 18-8-2019
    Search: repetition #3 of Sunday in 9-2019 is 15-9-2019
    Search: repetition #3 of Sunday in 10-2019 is 20-10-2019
    Search: repetition #3 of Sunday in 11-2019 is 17-11-2019
    Search: repetition #3 of Sunday in 12-2019 is 15-12-2019[/quote:3478a5d77f]

    Those are the results I obtain as well (although I did change the printout to reflect the US standard of M-D-Y

    thanks again for your effort and assistance

  • BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY



    [quote:5abc1eec95="six1"]Search: repetition #3 of Sunday in 12-2019 is 15-12-2019[/quote:5abc1eec95]
    No one of your shown code is able to produce that result.

    Either you're making things up, or finally you've found your grain of corn.

  • BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY



    [quote:1f4975f597="KenHorse"]Really?[/quote:1f4975f597]
    Really.
    The code from your post Jul 23, 2019 4:52 pm gives with these values:
    [code:1:1f4975f597] wday = 6 ' 0-6 0=Monday
    repetition = 1 ' nth repetition of Day
    month = 12
    year = 19[/code:1:1f4975f597]
    this result:
    [quote:1f4975f597]Search: repetition #1 of Sunday in 12-2019 is 7-12-2019[/quote:1f4975f597]
    Which is not the case.

    The code from six1 from Jul 23, 2019 10:40 am, which six1 did edit already two times, puts out:
    [quote:1f4975f597]Search: repetition #1 of Sunday in 12-2019 is 2-12-2019[/quote:1f4975f597]
    Which is wrong too.

    This means your shown codes work randomly, I'd call it guesswork-code.
    It may be that there exists not shown code which produces reliable results.
    I know it's feasible, well, it took me a hour. wink

    Currently as I write this post, there is no correctly working code shown.

  • BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY



    made a loop for month and result is:

    Search: repetition #3 of Sunday in 1-2019 is 20-1-2019
    Search: repetition #3 of Sunday in 2-2019 is 17-2-2019
    Search: repetition #3 of Sunday in 3-2019 is 17-3-2019
    Search: repetition #3 of Sunday in 4-2019 is 21-4-2019
    Search: repetition #3 of Sunday in 5-2019 is 19-5-2019
    Search: repetition #3 of Sunday in 6-2019 is 16-6-2019
    Search: repetition #3 of Sunday in 7-2019 is 21-7-2019
    Search: repetition #3 of Sunday in 8-2019 is 18-8-2019
    Search: repetition #3 of Sunday in 9-2019 is 15-9-2019
    Search: repetition #3 of Sunday in 10-2019 is 20-10-2019
    Search: repetition #3 of Sunday in 11-2019 is 17-11-2019
    Search: repetition #3 of Sunday in 12-2019 is 15-12-2019

  • BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY



    [quote:15cb95f13a="MWS"][quote:15cb95f13a="KenHorse"]I must have tried it after the fix as I have not had an entered nth occurrence of a day yet fail to produce the correct result.[/quote:15cb95f13a]
    There was no fix, the previous code puts out nonsense, as well as the current code does.
    My previous message from 2:38 pm was for a reason, it reflected the tests I made with this code.
    At least it's truly KenHorse-style code, shooting the horse from the back. cheesey

    @Six1:
    I'd suggest to post new code as new and don't edit old code in old messages, nobody can keep pace with such mess.[/quote:15cb95f13a]

    Really?

| Date published: not known
Back to newsfeed list
Welcome
Username or Email:

Password:




[ ]
[ ]
Headlines

»Share your working BASCOM-AVR code here : Fast library for SSD1289 LCD + Proteus Model : REPLY
Hello, Many thanks for library. Just little feedback: I have tested the saintsmart shield with the demo of arduino code, wo...
»BASCOM-AVR : SD read/write error : REPLY
Hi Neil, My memory of all the steps needed to get an SD card going are long gone. And in any case I used them in simple SPI mode...
»BASCOM-AVR : SD read/write error : REPLY
Thanks Adrian, Unfortunately in the latest population of boards, i cannot cycle the SD card power. On older...
»BASCOM-AVR : SD read/write error : REPLY
Reaching back into dark history... I too had rare problems getting SD cards to respond. Maybe not the same failure, but effect...
»BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY
happy to help KenHorse...
»BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY
[quote:3478a5d77f="six1"]made a loop for month and result is: Search: repetition #3 of Sunday in 1-2019 is 20-1-2019 Search: r...
»BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY
[quote:5abc1eec95="six1"]Search: repetition #3 of Sunday in 12-2019 is 15-12-2019[/quote:5abc1eec95] No one of your shown code is...
»BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY
[quote:1f4975f597="KenHorse"]Really?[/quote:1f4975f597] Really. The code from your post Jul 23, 2019 4:52 pm gives with these va...
»BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY
made a loop for month and result is: Search: repetition #3 of Sunday in 1-2019 is 20-1-2019 Search: repetition #3 of Sunday in...
»BASCOM-AVR : Calculating date from # of occurance of Sunday in a month? : REPLY
[quote:15cb95f13a="MWS"][quote:15cb95f13a="KenHorse"]I must have tried it after the fix as I have not had an entered nth occurrenc...


Date published: not known
Details

»upload mit externer Software
Hallo in Forum, ich hätte mal wieder eine Frage an die Profis: Im Rahmen einer Servicetechniker Ausstattung würde ich gerne ein Uplaodtool verwen...
»Wie Direktive $ReduceIVR anwenden?
Hallo zusammen Ich spiel hier grad bissel mit dem Tiny13 rum und probiere die Directive $ReduceIVR aus. Mein Programm sieht so aus: BASCOM-Quellco...
»Datum berechnen: xte Wiederholung eines Tages im Monat finden
Ein Codeschnipsel, um das Datum zur xten Wiederholung eines Wochentages in Monat/Jahr zu finden. Braucht man, wenn man z.B. das Datum zum dritten S...
»Temperatursensor DS18S20 & Atmega 8515
Gibt es einen vorgesehenen Pin am Atmega 8515 für den Anschluss des Temperatursensor DS18S20 ?
»ADF4351 Frequency Syntheziser, Frequenzeinstellung via Bascom
Vielleicht ist dieses Thema ein wenig Off-Topic, aber ich möchte dennoch einmal nachfragen, ob sich ein User schon mit einem solchen oder ähnliche...
»Stromwandler mit ADC messen
Hallo Bascom Freunde, Ich möchte AC-Strom per Stromwandler messen und den RMS Wert dann berechnen. Die Wechselspannung vom Wandler gelangt per Spa...


Date published: Wed, 24 Jul 2019 06:26:36 +0000
Details

»93c46 editor programmer bascom & vb93c46 editor programmer bascom & vb
»93c46 Bascom & VB693c46 Bascom & VB6
»Analog clock on SSD1289 3.2" 240x320 lcdAnalog clock on SSD1289 3.2" 240x320 lcd
»Nextion HMI lcd with KaraDio the best webradio esp8266Nextion HMI lcd with KaraDio the best webradio esp8266
»Adding 240x320 lcd to the WifiWebRadioAdding 240x320 lcd to the WifiWebRadio
»IV-17 Nixie clock GPS set time & date at power onIV-17 Nixie clock GPS set time & date at power on


Date published: not known
Details

»Bascom Can Bus Sniffer
»R.I.P Ben Zijlstra
Remembering Ben Zijlstra We hope that people who love Ben will remember and celebrate his life. more info at MCS www.mcselec.com/index2.ph...
»KaRadio webradio ESP8266
The Dimitris board is available at https://github.com/dsaltas/WiFi-WebRadio  This is a hardware project for Ka-Radio
»93C46
small tool to edit 93C46 eeprom written in BascomAVR & VB  Bascom control the 93C46 so we sent data via comport from VB code will be added later ...
»nRF24L01+ RC Controller
This is a RC controller TX & RX unit with nRF24L01+ nRF24L01+ / with PA and LNA for longer range facts: TX 1 x potmeter for servo ...
»RAW lcd
Connecting RAW lcd to atmega8 the lcd is 6 digit + time glass LCD Hour Meter for  tractor ,air compressor, ect the lcd have 4 com pins  & 14...


Date published: not known
Details


Proudly powered by e107 which is released under the terms of the GNU GPL License.