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

This page ever ...
total: 166
unique: 97

Site ...
total: 2551
unique: 1080
Online
  • Guests: 1
  • Members: 0
  • Newest Member: ole
  • Most ever online: 42
    Guests: 42, Members: 0 on Thursday 11 January 2018 - 04:46:41
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 : XMEGA128D4: MISO Port as GPIO possible? : REPLY



    [quote:f0852d3db2="boeseturbo"]Master = Yes , Mode = [b:f0852d3db2]0[/b:f0852d3db2]
    testword , [b:f0852d3db2]0[/b:f0852d3db2][/quote:f0852d3db2]
    Seems not to be the equivalent.

  • BASCOM-AVR : Hardware SPI XMEGA128D4 using MISO for other things not poss : NEWTOPIC



    Hi friends,

    I use Hardware SPI on XMEGA128D4 to drive tft display.

    [code:1:663c00f9ad]
    Const Spdata = SpiC_data
    Const Spstatus = SpiC_status
    Config PortC.4 = Output
    Portc.4 = 1
    PortC_pin6ctrl = &B00_011_000
    Config SpiC = Hard , Master = Yes , Mode = 0 , Clockdiv = Clk2 , Data_order = Msb , Ss = None
    Open "SPIC" For Binary As #10
    [/code:1:663c00f9ad]

    Now I want to use soft-SPI on pin C6 ...

    [code:1:663c00f9ad]
    PortC.6 = 1
    porte.0 = 0
    Shiftin PinD.1 , PortC.6 , testword , 0 , 16 , 10
    print testword
    porte.0 = 1
    [/code:1:663c00f9ad]

    didnt work... I already made "config portc.6=Output" but I have no luck...

    Is their a possibility to use C6 or should I use other portpin for that?

    BR

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

  • Various : MAX232 overheating : REPLY



    hi mark,
    100% sure, but i will post the cct. i have not changed brandds but will do that. they are smd and i have some on order from RS.
    The debug cable is a ribbon cable , with a 10pin box header so no metal shroud. all spare wires are to 0v.
    ive done some chevking and when the atmega board is off, and the laptop running and plugged in, there is -6v dc from the usb/rs232 converter appeating on the rs242 receiver input of the max, and i suspect this is the culprit, but no proog. a 1k to ground on both rx and tx of the max made no fifference.
    thanks for taking an interest Mark. Appreciated.
    neil

  • BASCOM-AVR : Debugging in AVR Studio : REPLY



    Hello laborratte
    I have just tested avrmapbuilder2.exe and it works. Not very friendly but since BASCOM does not generate ELF files, it is the best solution that I know, many thanks!

    Regards
    Hector

  • Share your working BASCOM-AVR code here : Stepper motor driver running as background process : REPLY



    About this neat code description and style... Wow :shock:
    I will take some shapes from this work for my next codes cheesey
    Thanks for sharing.

  • Various : MAX232 overheating : REPLY



    and how is the housing of the connector connected?
    I mean the metal frame.

    you can try another brand too.

    you are 100 sure you connected the max the right way?

  • Share your working BASCOM-AVR code here : Stepper motor driver running as background process : REPLY



    Hi Per,

    Thank you for sharing your work. This is a great piece of code. Wish i had that some years ago when i had to figure it out cheesey
    I see that you also included an AN about the LC filter. Interesting.

  • BASCOM-AVR : Two Stepper motor at different speeds : REPLY



    Have a look at this:
    https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=14042

  • Share your working BASCOM-AVR code here : Stepper motor driver running as background process : NEWTOPIC



    Time for a small but perhaps useful contribution.
    Hope you can make use of it
    /Per


    '********************** STEP MOTOR DRIVING for Arduino Mega2560 and PBL3717 ****************************

    This program drives a stepper motor by an interrupt driven background process. One microstep per interrupt
    A fully autonomous session consist of Ramp_up -> Constant speed for N microsteps -> Ramp_down
    Any type of 2-phase stepper motor may be used. 4,8,16 or 32 microsteps per physical motor cycle may be specified. This is equivalent to 1,2,4 or 8 microsteps per motor step
    A stepping sequence can range from -2^31 to +2^31 microsteps (See STEPPER MOTOR PARAMS here below)
    Each stepping sequence will ramp up and down from a safe start rate, for smoother start/stop
    It is written for Arduino Mega 2560 interfacing a PBL3717 (NJR3717) or equivalent power IC, but should be rather easy to adapt to other IC's.
    A simple command line interpreter will accept commands over a serial port

    The whole stepping sequence is strated by calling the STEPP routine. It will start background stepping and then return.
    The Tim1_irq interrupt routine will take care of the actual stepping

    SYNTAX: CALL STEPP(<steps> , <rate>)
    Where <steps> may be -2^31 to +2^31 microsteps
    and <rate> may be R to XTAL microsteps/sec, but as TIMER1 is just 16 bits long, there is a lower limit to R
    This lower rate limit is R=XTAL/65535 microsteps/s and is automatically checked by the STEPP routine
    The upper rate limit is XTAL microsteps/s, but this is of course an unrealistic rate for any motor...

    Stepping will automatically wait until previous stepping is finished (or cancelled by user)
    Stepping will start from a safe rate (S). Then ramp up to final sustained rate (R)

    Two PBL3717 ICs are needed. On for each winding. (see attached schematic)
    The Arduino Mega 2560 interface is like this:
    Vref_a/b is controlling the amount of power for each microstep via a PWM acting as a DAC (Sine wave approximated power)
    Phase_a/b is controlling currents direction in the coils during a full microstep sequence
    Phase_a Alias Portl.0 'Arduino pin 49
    Phase_b Alias Portl.1 'Arduino pin 48
    I0_a Alias Portl.2 'Arduino pin 47
    I0_b Alias Portl.3 'Arduino pin 46
    Vref_a Alias Portl.4 'Arduino pin 45
    Vref_b Alias Portl.5 'Arduino pin 44
    I1_a Alias Portl.6 'Arduino pin 43
    I1_b Alias Portl.7 'Arduino pin 42


    TCC1 is used for control of the stepping rate
    TCC5 is used for Motor power control. It acts as a PWM-DAC for the sine wave microstepping

  • Various : MAX232 overheating : NEWTOPIC



    I use 3 Max 202CSE chips on my boards to interface to various external RS232 devices, and for some time have been plagued with intermittent overheating of one MAX device that connects to my debug port. There are various comments of similar problems on other forums, but no real conclusions.
    My circuit is correct and I have made about 100 of these boards, all of which have been successful (for 5 years) up until now.
    I have changed my source of the MX202CWE devices - theres a clue.

    Anyway - I have found that if I have my laptop with a USB/Ser convertor plugged into my board BEFORE i power up the board, the Max device will latch and burn your fingers. On the other hand, if I plug the USB/ser header in AFTER I power on the PCB, the Max device runs perfectly. I have repeated this test about 10 times, with same result.

    I use 0.1uF caps on the charge pumps. Changing these to 1uF polarized made no difference. The 0v of my PCB is connected through the ribbon cable to pin 5 of the USB/ser convertor, so its not a common earth problem. Also - if I run the laptop on battery only, with nothing else plugged into it - that doesnt help.
    A poster "Prodigy" on this forum also found the same scenario.
    [quote:d8a065be2a]https://e2e.ti.com/support/interface/rs232/f/392/t/233847[/quote:d8a065be2a] A google search will also uncover many other similar discussions, but no answers yet that i can see.

    Still working on it.
    neil

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

Password:




[ ]
[ ]
Headlines

»BASCOM-AVR : XMEGA128D4: MISO Port as GPIO possible? : REPLY
[quote:f0852d3db2="boeseturbo"]Master = Yes , Mode = [b:f0852d3db2]0[/b:f0852d3db2] testword , [b:f0852d3db2]0[/b:f0852d3db2][/qu...
»BASCOM-AVR : Hardware SPI XMEGA128D4 using MISO for other things not poss : NEWTOPIC
Hi friends, I use Hardware SPI on XMEGA128D4 to drive tft display. [code:1:663c00f9ad] Const Spdata = SpiC_data ...
»Various : MAX232 overheating : REPLY
hi mark, 100% sure, but i will post the cct. i have not changed brandds but will do that. they are smd and i have so...
»BASCOM-AVR : Debugging in AVR Studio : REPLY
Hello laborratte I have just tested avrmapbuilder2.exe and it works. Not very friendly but since BASCOM does not generate ELF f...
»Share your working BASCOM-AVR code here : Stepper motor driver running as background process : REPLY
About this neat code description and style... Wow :shock: I will take some shapes from this work for my next codes :D Thanks fo...
»Various : MAX232 overheating : REPLY
and how is the housing of the connector connected? I mean the metal frame. you can try another brand too. you are 100 sur...
»Share your working BASCOM-AVR code here : Stepper motor driver running as background process : REPLY
Hi Per, Thank you for sharing your work. This is a great piece of code. Wish i had that some years ago when i had to figure it ...
»BASCOM-AVR : Two Stepper motor at different speeds : REPLY
Have a look at this: https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=14042
»Share your working BASCOM-AVR code here : Stepper motor driver running as background process : NEWTOPIC
Time for a small but perhaps useful contribution. Hope you can make use of it /Per '********************** STEP MOTOR DRI...
»Various : MAX232 overheating : NEWTOPIC
I use 3 Max 202CSE chips on my boards to interface to various external RS232 devices, and for some time have been plagued with in...


Date published: not known
Details

»Einlesen von Tastern und ausgabe je über Schiebregister
Hallo alle zusammen, Ich habe vor 130 Taster (65 Tastschalter mit Mittelstellung) einzulesen. Diese sollen dann Relais Schalten. Desweiteren soll...
»Uhr mit 4x 8x8 Led-Matrix Max7219
Hallo, hat jemand zu diesem Thema noch Code-Listings aus dem alten Bascom-Forum oder andere Bascom Listings. Ich habe diesbezüglich noch keine Erfa...
»Ladegerät 24 Volt (ca) 30 A
Parallel zu meiner Basaranzeige ( bascomforum.de/wfbasar/index.p…a/&commentID=13#comment13 ) poste ich jetzt mal diesen Thread. Eigentlich ist das...
»Empfehlung zu Win 10
Hallo Spezialisten, ich hab' mal eine Frage: Es begab sich zu der Zeit, als ich meinen Win xp-Rechner so ungefähr am Montag einschalten musste, dam...
»Decoder V40511 DDR
Hallo, ich suche 8Stk. Dekoder V40511 aus unserer alten DDR-Produktion. Hat jemand noch welche? danke und Gruß aus MD Jürgen
»Programmieradapter für Attiny817 &amp; 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...


Date published: Wed, 17 Jan 2018 21:23:57 +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

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