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

This page ever ...
total: 194
unique: 125

Site ...
total: 2926
unique: 1394
Online
  • Guests: 1
  • 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

  • BASCOM-AVR : Xmega ADC on PortA.3 : NEWTOPIC



    Hello,

    Xmega ADC
    This compile fine and can read the digital value
    Config Adca = Single , Convmode = UnSigned , Resolution = 12bit , Dma = Off , Reference = Intvcc , Event_mode = None , Prescaler = 512 , _
    Ch0_gain = 1 , Ch0_inp = Single_ended , Mux0 = &B00000000 'Setup Channel 0 in Single Ended Mode

    Do
    w = Getadc(adca , 0 , &B00000000) 'ADC A, Channel 0 , MUX = &B00000000 --> PINA.0
    Waitms 1000
    print #1, "ADC steps = " ; w
    Loop

    But i need to use the ADC on PortA.3 but if make the config like this, it not compile and show errors, what make i wrong?
    Config Adca = Single , Convmode = UnSigned , Resolution = 12bit , Dma = Off , Reference = Intvcc , Event_mode = None , Prescaler = 512 , _
    Ch3_gain = 1 , Ch3_inp = Single_ended , Mux3 = &B10000000 'Setup Channel 3 in Single Ended Mode

    Appreciate any help
    Regards
    P_Santos

    [b:ccd2d088c4][color=red:ccd2d088c4](BASCOM-AVR version : 2.0.8.1 )[/b:ccd2d088c4][/color:ccd2d088c4]

  • BASCOM-AVR : PWM 1Hz-5Hz : REPLY



    :smt023

  • BASCOM-ARDUINO : Arduino Mega2560 + LCD Keypad Shield : REPLY



    I will try to do it tonight. The frequency of the oscillator was also checked and the setting fuse bit for the clock. Everything is OK here. As you wrote, I will check everything to be sure on the LED.

  • BASCOM-ARDUINO : Arduino Mega2560 + LCD Keypad Shield : REPLY



    you best do the toggle test, then when that is ok and you are sure that it is wired as in the CONFIG LCD, share this info here.
    something else : make sure the $crystal matches the actual processor clock. when you set it to say 1 mhz and it is actual higher, the timing will not be right.
    but the toggle test will reveal that quickly when using 1000 mS delay.

  • BASCOM-AVR : PWM 1Hz-5Hz : REPLY



    [quote:2213d8691b="atmega64"]only with this code I have a minimum frequency of 7.6Hz ...[/quote:2213d8691b]
    Understandable with a prescaler of 8
    [quote:2213d8691b]how can I get to have a frequency range of 1Hz - 5Hz?[/quote:2213d8691b]
    [code:1:2213d8691b]TCCR1B = &B00011011[/code:1:2213d8691b]

  • BASCOM-ARDUINO : Arduino Mega2560 + LCD Keypad Shield : REPLY



    Yes you are right, WR is permanently connected to GND in this schield. I was already thinking about it. However, I would like to avoid PCB modifications.

  • BASCOM-ARDUINO : Arduino Mega2560 + LCD Keypad Shield : REPLY



    while trivial it is really required. my guess is that you do not take into account the WR. but i do not like to guess.

  • BASCOM-ARDUINO : Arduino Mega2560 + LCD Keypad Shield : REPLY



    I will do it, please do not feel sorry for me. I was digging through the Internet for a week, and in all available Arduino documents with pin mapping, I had the same information. In the examples of BASCOM for Arduino Uno everything was also right. I did not think about checking the correctness of the Arduino documentation. And the definition of LCD in BASCOM is so trivial that I considered it an abuse to paste such code ....

  • BASCOM-ARDUINO : Arduino Mega2560 + LCD Keypad Shield : REPLY



    When you post for help, you should wonder if you post enough information so you can get help.
    at least you should post your code (in code tags). that is the very minimum.
    then it will also help to post a circuit or part of the circuit. especial when dealing with arduino hardware.
    and you should have performed a test for the used pins. if you think pg5 is used, just make it toggle and connect a LED to see if it does.
    in short you should do maximum your best to provide the readers all the info there is. no room for guessing.

  • BASCOM-ARDUINO : Arduino Mega2560 + LCD Keypad Shield : NEWTOPIC



    Hello,
    I have a problem with running it would seem a simple thing. I want to use the Mega2560 and LCD Keypad Shield. And I can not run the LCD ... The program is compiling, however, after loading the LCD does not work.
    The Arduino documentation shows that the LCD is connected via digital pins 4, 5, 6, 7, 8 and 9. Translating this on the ports of the Mega2560 processor comes out that in the LCD configuration I should use: PG5, PE3, PH3, PH4, PH5 and PH6 . After entering the appropriate ports and compiling the program, the LCD does not work. Lights up but does not display any characters. Of course, in the same set when I am loading an Arduino sketch, everything works perfectly.
    I have a lot of my own programs for years written in BASCOM, I got used to it and I do not want to give up, and here a simple thing stopped me.
    Does anyone have any idea what's going on?

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

Password:




[ ]
[ ]
Headlines

»BASCOM-AVR : Xmega ADC on PortA.3 : NEWTOPIC
Hello, Xmega ADC This compile fine and can read the digital value Config Adca = Single , Convmode = UnSigned , Resolution = 1...
»BASCOM-AVR : PWM 1Hz-5Hz : REPLY
:smt023
»BASCOM-ARDUINO : Arduino Mega2560 + LCD Keypad Shield : REPLY
I will try to do it tonight. The frequency of the oscillator was also checked and the setting fuse bit for the clock. Everything i...
»BASCOM-ARDUINO : Arduino Mega2560 + LCD Keypad Shield : REPLY
you best do the toggle test, then when that is ok and you are sure that it is wired as in the CONFIG LCD, share this info here. s...
»BASCOM-AVR : PWM 1Hz-5Hz : REPLY
[quote:2213d8691b="atmega64"]only with this code I have a minimum frequency of 7.6Hz ...[/quote:2213d8691b] Understandable with a...
»BASCOM-ARDUINO : Arduino Mega2560 + LCD Keypad Shield : REPLY
Yes you are right, WR is permanently connected to GND in this schield. I was already thinking about it. However, I would like to a...
»BASCOM-ARDUINO : Arduino Mega2560 + LCD Keypad Shield : REPLY
while trivial it is really required. my guess is that you do not take into account the WR. but i do not like to guess. ...
»BASCOM-ARDUINO : Arduino Mega2560 + LCD Keypad Shield : REPLY
I will do it, please do not feel sorry for me. I was digging through the Internet for a week, and in all available Arduino documen...
»BASCOM-ARDUINO : Arduino Mega2560 + LCD Keypad Shield : REPLY
When you post for help, you should wonder if you post enough information so you can get help. at least you should post your code...
»BASCOM-ARDUINO : Arduino Mega2560 + LCD Keypad Shield : NEWTOPIC
Hello, I have a problem with running it would seem a simple thing. I want to use the Mega2560 and LCD Keypad Shield. And I can no...


Date published: not known
Details

»Babette, die sprechende Küchenhilfe (ein Kurzzeittimer)
Babette ist vorzeigbar. Noch nicht perfekt, aber schon mit allen Funktionen ausgestattet. Babette ist ein Kurzzeittimer (1Minute bis 12 Stunden in ...
»Zwei Kontroller futsch, kann das NT schuld sein?
Mir sind jetzt 2 mega168 smd kaputt gegangen, das heißt, ich konnte sie mit dem AVRISPMKII nicht mehr erreichen. Die Kontroller wurden mit einen US...
»Programmieradapter für Attiny817 & Co.
Guten Morgen, könnt Ihr mir schon über geeignete Programmieradapter für die neuen ATTiny's (z.B. 817, 417, ...) berichten, weil diese wohl mit UPD...
»Bascom Arduino SPI
Hallo Ich versuche vergblich über das Arduino Uno, und auch über das 2560 Board einen Winkelsensor über die SPI Schnittstelle auszulesen. Weder üb...
»Frage zur For-Next-Schleife
Bitte bewerft mich nicht mit Steinen... An sich programmiere ich schon recht lange mit Bascom, jedoch hab ich mich immer gefragt, was die Variab...
»Batterieversorgung von AVRs, hier 4x1,5V AAA-Zellen
Ich möchte meinen Küchentimer 'Babette' in einen 'portablen Lautsprecher' einbauen. pollin.de/p/portabler-designlautsprecher-schwarz-641081 Das hei...


Date published: Thu, 15 Nov 2018 11:46:18 +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.