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

This page ever ...
total: 155
unique: 86

Site ...
total: 2445
unique: 979
Online
  • Guests: 2
  • Members: 0
  • Newest Member: ole
  • Most ever online: 36
    Guests: 36, Members: 0 on Tuesday 11 April 2017 - 04:26:13
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 month ago
test
Royalsystems blog

MCS Electronics Forum

  • BASCOM-AVR : Timer Counter Question : REPLY



    It Was easy.
    ''''''''''''''''''''''''''''''''''''''
    $regfile = "m8def.dat"
    $crystal = 8000000
    Config Portb.5 = Output
    Config Timer2 = Timer , Prescale = 256
    On Timer2 Timer2isr
    Enable Interrupts
    Enable Timer2
    Timer2 = 0
    Do
    'main program loop
    Loop

    Timer2isr:
    Toggle Portb.5
    Return

    Thanks

  • Various : Ben Zijlstra : REPLY



    i followed ben's site with great interest and I am saddened to hear of his passing - my condolences to his family and his great friends here and elsewhere.

  • BASCOM-AVR : Bootloader update : REPLY



    Hi Neil,
    for a project of mine, i was using an external serial flash "ESF" with 512KB. (AT45DB041B)
    There is one emergency System Backup flashed, wich can be reflased into Mega by pressing button on reset i.e.

    Sending new system will be flashed first into ESF. After whole transmission into ESF, Data is checked (CRC...) and if it was ok, it is flased into Mega.


    Best, michael

  • BASCOM-AVR : Bootloader update : REPLY



    thats what i was thinking.

  • BASCOM-AVR : Bootloader update : REPLY



    Hi,

    We even sent one of these boxes to a customer (high security zone where the service guys have no access and the customer didn't want to remove the devices from the area) and they where surprised how easy/quick it was.

    Regards
    Ian Dobson

  • BASCOM-AVR : Bootloader update : REPLY



    hi Ian,
    thats exactly the info i needed. Thanks.
    i have about 40 devices out in the feild, and they each have a hex bootloder that works ok but is slow., If i need to update formware, i FTP a new hex file plus a 16bit crc. But id like to update them with a bootloader that will accept a bin file, which is/only 13 as long. My hex file is 74k and takes a while over the cellular network. The best solution would be to update the bootloader OTA, but your little gadget is a possibilty i think.

  • BASCOM-AVR : Bootloader update : REPLY



    hi Ian,
    thats exactly the info i needed. Thanks.
    i have about 40 devices out in the feild, and they each have a hex bootloder that works ok but is slow., If i need to update formware, i FTP a new hex file plus a 16bit crc. But id like to update them with a bootloader that will accept a bin file, which is/only 13 as long. My hex file is 74k and takes a while over the cellular network. The best solution would be to update the bootloader OTA, but your little gadget is a possibilty i think.

  • BASCOM-AVR : Bootloader update : REPLY



    Hi,

    I'm not sure if you can update the bootloader with a bootloader. You'd have to do something really trickly along the lines of having 2 bootloaders.

    1) Bootloader that can update the main application
    2) A tiny bootloader (maybe at the very end of the bootloader) that can update the application bootloader.

    From my experience the bootloader should be as simple as possible and tested, tested, tested until your 100% sure it's bug free. That way your sure you'll never have to change it. I have a device that's been out in the field for about 4 years with over 1000 installations and although I've updated the main application several times the bootloader hasn't changed. On a few occasions we've had to reprogram the complete AVR on site and my service guys carry a "stand alone ISP" to allow them to do this. Here's the link:

    https://www.olimex.com/Products/AVR/Programmers/AVR-ISP500-TINY/

    Using it is very simple:
    1) Plug into USB port on PC (it now appears as a small flash drive)
    2) Copy required files onto flash drive
    3) Attach to the ISP
    4) Press button on the ISP and wait until the LED lights up green.

    Regards
    Ian Dobson

  • BASCOM-AVR : Bootloader update : REPLY



    hi enniom, and thaks for your reply.
    i know about this post, but my question is can i replace the bootloader itself, not the run time code ..the bootloader?

  • BASCOM-AVR : Timer Counter Question : REPLY



    [quote:f958651553="Goorman"]I want to configure time2 as timer for overload interrupt on Atmega8.[/quote:f958651553]Searching for [b:f958651553]overflow[/b:f958651553] interrupt will be more successful.

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

Password:




[ ]
[ ]
Headlines

»BASCOM-AVR : Timer Counter Question : REPLY
It Was easy. '''''''''''''''''''''''''''''''''''''' $regfile = "m8def.dat" $crystal = 8000000 Config Portb.5 = Output Config ...
»Various : Ben Zijlstra : REPLY
i followed ben's site with great interest and I am saddened to hear of his passing - my condolences to his family and his great fr...
»BASCOM-AVR : Bootloader update : REPLY
Hi Neil, for a project of mine, i was using an external serial flash "ESF" with 512KB. (AT45DB041B) There is one emergency Syste...
»BASCOM-AVR : Bootloader update : REPLY
thats what i was thinking.
»BASCOM-AVR : Bootloader update : REPLY
Hi, We even sent one of these boxes to a customer (high security zone where the service guys have no access and the customer di...
»BASCOM-AVR : Bootloader update : REPLY
hi Ian, thats exactly the info i needed. Thanks. i have about 40 devices out in the feild, and they each have a hex b...
»BASCOM-AVR : Bootloader update : REPLY
hi Ian, thats exactly the info i needed. Thanks. i have about 40 devices out in the feild, and they each have a hex b...
»BASCOM-AVR : Bootloader update : REPLY
Hi, I'm not sure if you can update the bootloader with a bootloader. You'd have to do something really trickly along the lines ...
»BASCOM-AVR : Bootloader update : REPLY
hi enniom, and thaks for your reply. i know about this post, but my question is can i replace the bootloader itself, not the run ...
»BASCOM-AVR : Timer Counter Question : REPLY
[quote:f958651553="Goorman"]I want to configure time2 as timer for overload interrupt on Atmega8.[/quote:f958651553]Searching for ...


Date published: not known
Details

»EV Ladestation: Idee für automatische Parallelschaltung
Mein E-Fahrzeug wird über eine Schuko-Steckdose geladen da ich unterwegs gerne an einer Ladesäule auftanken möchte habe ich mir einen Adapter von T...
»ShiftOut in einer Subroutine
Hallo, ist es etwa nicht möglich, eine shiftout in einer Subroutine unterzubringen? ich habe in den TimerSubroutine reingeschrieben und bekomme C...
»PING richtig auswerten
Hallo, ich sende von meinem PC Software über die USB Schnittstelle an den AT90USB162 in 5sec. abstand einen Ping. Diese kommt dort auch an. Frage...
»Tic tak toe, wie kann man so ein Spiel umsetzen?
Ihr kennt sicher alle das Spiel tic tac toe (die älteren vielleicht aus dem Film 'Wargames') Wikipedia schreibt dazu de.wikipedia.org/wiki/Tic-Tac-...
»Output wird nicht auf NULL gesetzt
Hallo, ich habe hier eine LED angeschlossen, kann sie auf 1 setzen aber dann nicht mehr auf 0. An dieser Stelle Interfaceactivated = 1 leuchtet di...
»Kugeln vereinzeln
Hallo, ich habe in unserer Theatergruppe die Aufgabe bekommen einen (Stoff) Hamster ->kaken<- zu lassen. Der Hamster wird an den Ohren gehalten und...


Date published: Sun, 23 Jul 2017 16:38:27 +0000
Details

»93c46 editor programmer bascom &amp; vb93c46 editor programmer bascom &amp; vb

»93c46 Bascom &amp; VB693c46 Bascom &amp; 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 &amp; date at power onIV-17 Nixie clock GPS set time &amp; date at power on



Date published: not known
Details

»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.