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

This page ever ...
total: 161
unique: 92

Site ...
total: 2490
unique: 1022
Online
  • Guests: 1
  • 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
4 months ago
test
Royalsystems blog

MCS Electronics Forum

  • BASCOM-AVR : Two 12bit spi adc : REPLY



    Both good suggestions above!

    Have you looked at the data sent from the ADC chip to the micro with either an O'scope or a Logic Analyzer to verify that the ADC chip is sending the correct data, and that, therefore, the problem is within the micro?

    Is the input to the ADC filtered and noise free, (at least for your initial testing)?

    It is helpful to know, with certainty, where the problem originates, before trying to track it down.

    JC

  • BASCOM-AVR : Two 12bit spi adc : REPLY



    Increase the stack.

  • BASCOM-AVR : Two 12bit spi adc : REPLY



    Try slowing down the clock by adding delay.
    [quote:5c4d5d274d]SHIFTIN pin , pclock , var , option [, bits , delay ][/quote:5c4d5d274d]

  • BASCOM-AVR : Two 12bit spi adc : NEWTOPIC



    Hello friends,
    With past suggestions i have completed first task to get data from two SPI based 12BIT ADC, MAX189. Now, while attempting to receive uninterrupted values from the ADC's, I get a undefined jump in between the ADC value, like first ADC provide output as 3035, which remains for there with very slight change to 3039, then suddenly it jumps to a value of 1181, then come back to 3039. Throughout this process i never changed the input for ADC.
    I am unable to find the cause to this problem?
    Here is the code:
    [code:1:ac55cb2941]$crystal = 16000000
    $hwstack = 32
    $regfile = "m32def.dat"
    $swstack = 10
    $framesize = 40
    '$baud = 9600
    '$sim
    Config Timer1 = Pwm , Pwm = 8 , Compare A Pwm = Clear Down , Compare B Pwm = Clear Down , Prescale = 1024
    Config Lcdpin = Pin , Db7 = Portc.2 , Db6 = Portc.3 , Db5 = Portc.4 , Db4 = Portc.5 , E = Portc.6 , Rs = Portc.7
    Config Lcd = 20 * 4
    Cursor Off Noblink
    'Config Adc = Single , Prescaler = Auto
    'Stop Adc
    Ss Alias Portb.1
    Ss1 Alias Portb.3
    Dout Alias Pinb.2
    'Dout1 Alias Pind.2
    Clock Alias Portb.0
    'Clock1 Alias Porta.0
    Config Ss = Output
    Config Ss1 = Output
    Config Portd.6 = Output
    Config Portd.4 = Output
    Config Portd.5 = Output
    Config Portd.3 = Output
    'Config Pind.2 = Input
    Config Pinb.4 = Input
    Config Pinb.5 = Input
    Config Pinb.6 = Input
    Config Pinb.7 = Input
    Dim V As Word , V1 As Word
    Dim Fat As Single , Fat1 As Single , Fat3 As String * 5 , Fat4 As Single
    Dim A As Word , B As Word , Fat5 As Single

    'Set Ss1
    Pwm1a = 255
    Reset Ss
    Waitms 5
    Do
    Loop Until Dout = 1
    Shiftin Dout , Clock , V , 0 , 16
    Shift V , Right , 4
    'Lcd "V= " ; V
    Set Ss
    Waitms 200


    Do
    B = 255
    Pwm1b = B
    Pwm1a = 255
    Portd.6 = 0
    Cls
    Lcd "READY"
    If Pinb.6 = 0 Then
    B = 25
    Portd.6 = 1
    Waitms 200
    A = 75
    Pwm1a = A
    Wait 1
    Waitms 100
    A = 255
    Pwm1a = A
    Waitms 200
    Portd.6 = 0
    Waitms 100
    Do
    If Pinb.5 = 0 Then B = B + 1
    If Pinb.4 = 0 Then B = B - 1
    Pwm1b = B
    Set Ss1
    Waitms 50
    Reset Ss
    Waitms 5
    Do
    Loop Until Dout = 1
    Shiftin Dout , Clock , V , 0 , 16
    Shift V , Right , 4
    Set Ss
    Wait 1
    Set Ss
    Waitms 50
    Reset Ss1
    Waitms 5
    Do
    Loop Until Dout = 1
    Shiftin Dout , Clock , V1 , 0 , 16
    Shift V1 , Right , 4
    Set Ss1
    Waitms 100
    Cls
    Lcd "ADC1=" ; V
    Lowerline
    Lcd "ADC2=" ; V1
    Thirdline
    Lcd "PWMB=" ; B
    Waitms 200
    Loop Until Pinb.7 = 0
    Waitms 100
    End If
    loop[/code:1:ac55cb2941]
    Kindly provide some more guidance over this topic.

    Thank You

    Regards
    Aniruddha

    [b:ac55cb2941][color=red:ac55cb2941](BASCOM-AVR version : 2.0.8.0 , Latest : 2.0.7.8 )[/b:ac55cb2941][/color:ac55cb2941]

  • Share your working BASCOM-AVR code here : ILI9341 with SW/HW SPI, 8/16 Bit parallel mode : REPLY



    Glad you got it working, it's a quite cheap and usable display!
    I compared the datasheets of the controllers, but could not find any difference in control sequences/commands. It may be possible that they are not 100% compatible, even the datasheet of the ILI controller obviously differs from the real IC...

    br

  • BASCOM-AVR : XMega USB Support : REPLY



    Hello guys! Any news about USB?

  • Share your working BASCOM-AVR code here : Proportional Fonts for GLCDs + TrueType Converter : REPLY



    Hello

    I have problem with tt_fonts
    I use xmega128 and fonts Timesnewroman_10pt
    when I use [code:1:ef1e6cd690]Lcd_tt_text "0" , 1 , 10 , Color[/code:1:ef1e6cd690] then display show 03 ,
    when [code:1:ef1e6cd690]Lcd_tt_text "1" , 1 , 10 , Color[/code:1:ef1e6cd690] thendisplay shows 13
    when [code:1:ef1e6cd690]Lcd_tt_text "Hello" , 1 , 10 , Color[/code:1:ef1e6cd690] thendisplay shows H33333, always shows only first letter and number

    where is problem ?

    Thanks
    Bob

  • BASCOM-AVR Old versions : Availability of Bascom 2.0.7.8 : REPLY



    Hello,
    I was able to install 2078.
    Deep in the bowels of my PC I found the "install.exe" of that version - the installation went smoothly.
    Thanks
    Ernst

  • BASCOM-AVR Old versions : Availability of Bascom 2.0.7.8 : REPLY



    Hello dear reader,
    so far no success in installing 2078
    In a new folder I have 3 files: "bascom-avr-2078.lic" , "bscavrl.dll" (which I assume is the license dll) and "UpdateWiz.exe".
    Upon starting UpdateWiz.exe a small window opens "MCS Auto Update Wiz 1.0.0.20", clicking "Setup" opens "Update Wizard Setup" asking for Proxy Data (all fields empty, except Proxy Port "0" and Time Out "0").
    Clicking "Next" opens "Product Selection" with "BASCOM-AVR 2.0.7.8" in the select box. Clicking "Next" creates a small window "MCS Auto" with "Bad request" and upon "OK" I'm back at an empty "Available Updates".
    Obviously I'm doing something wrong.
    Any idea?
    Thanks
    Ernst

  • BASCOM-AVR : Frequentie PWM : REPLY



    Configurate to 9 bit PWM.

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

Password:




[ ]
[ ]
Headlines

»BASCOM-AVR : Two 12bit spi adc : REPLY
Both good suggestions above! Have you looked at the data sent from the ADC chip to the micro with either an O'scope or a Logic ...
»BASCOM-AVR : Two 12bit spi adc : REPLY
Increase the stack.
»BASCOM-AVR : Two 12bit spi adc : REPLY
Try slowing down the clock by adding delay. [quote:5c4d5d274d]SHIFTIN pin , pclock , var , option [, bits , delay ][/quote:5c4d5d...
»BASCOM-AVR : Two 12bit spi adc : NEWTOPIC
Hello friends, With past suggestions i have completed first task to get data from two SPI based 12BIT ADC, MAX189. Now, while att...
»Share your working BASCOM-AVR code here : ILI9341 with SW/HW SPI, 8/16 Bit parallel mode : REPLY
Glad you got it working, it's a quite cheap and usable display! I compared the datasheets of the controllers, but could not find ...
»BASCOM-AVR : XMega USB Support : REPLY
Hello guys! Any news about USB?
»Share your working BASCOM-AVR code here : Proportional Fonts for GLCDs + TrueType Converter : REPLY
Hello I have problem with tt_fonts I use xmega128 and fonts Timesnewroman_10pt when I use [code:1:ef1e6cd690]Lcd_tt_text "0"...
»BASCOM-AVR Old versions : Availability of Bascom 2.0.7.8 : REPLY
Hello, I was able to install 2078. Deep in the bowels of my PC I found the "install.exe" of that version - the installation wen...
»BASCOM-AVR Old versions : Availability of Bascom 2.0.7.8 : REPLY
Hello dear reader, so far no success in installing 2078 In a new folder I have 3 files: "bascom-avr-2078.lic" , "bscavrl.dll" (w...
»BASCOM-AVR : Frequentie PWM : REPLY
Configurate to 9 bit PWM.


Date published: not known
Details

»WS2812B Nachbrenner für RC Modellflugzeuge (Nachtflug)
Ein neuer Nachtflieger hat das (Mond-)Licht der Welt erblickt. Einige technische Daten: Gebaut aus EPP 20g/dm³ Spannweite: 100 cm Länge: 89 cm ...
»ILI9341 display mit ATxmega128A3
Hallo Heiko, Hast eventuell eine version um den display 2,2" 320x240 mit ILI9341 mit Xmega128A3 zu betreiben? Mit Atmega2560 funktioniert, versuch...
»Ansteuerung 28byj-48 Steppermotor
Kleiner Code zur Ansteuerung des ministeppers. Betrieben mit 12V, ist dieser überraschend stark. Die Getriebeübersetzung und somit 4096 Steps pro U...
»Schieberegister
Hallo, mit einem noch zu komplettierenden Programm will ich mehrer Schieberegister 4094 über Unterprogramme ansteuern. Das Schieben selbst ist ein...
»Arduino Uno mit Bascom über Bootloader nutzen
Das hier soll kein "BASCOM ist besser als Arduino" oder umgekehrt werden sondern einfach nur zeigen wie man einen Arduino UNO mit Bascom nutzen kan...
»Rechtecksignale
Hallo geschätztes Forum, ich habe mich heute hier angemeldet, bin also der Neue. Ich versuch seit 2 Tagen, mich in die Materie Bascom / Microkont...


Date published: Thu, 21 Sep 2017 19:44:02 +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.