Suchergebnisse

Suchergebnisse 1-20 von insgesamt 38.

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

Aufgrund technischer Veränderungen ist der Mailverkehr innerhalb des Forums (Private Nachrichten) nur noch eingeschränkt möglich. Die Einschränkung ist notwendig, um zusätzliche Betriebskosten für das Forum zu vermeiden. Näheres zu den Hintergründen im Thread "Aktuelles zum Forum".Wir bitten um Verständnis.

Hinweis kann nach Kenntnisnahme deaktiviert werden!

  • PWM out change

    atmega64 - - Hauptforum BASCOM-AVR

    Beitrag

    thank you for the information, the spirit of a forum must be that of help and not of controversy and useless chatter... the TCCR2A and TCCR2B registers now seem correct... BASCOM-Quellcode (4 Zeilen) so I have a square wave with frequency 2790khz and duty cycle 50%... frequency is fine... It works for me but I can't change the duty cycle... what do you think about it?

  • PWM out change

    atmega64 - - Hauptforum BASCOM-AVR

    Beitrag

    sorry instead if I want to use OC2A of Timer2... i used the same reasoning, but why, this code doesn't work for Timer2 ? BASCOM-Quellcode (7 Zeilen)

  • PWM out change

    atmega64 - - Hauptforum BASCOM-AVR

    Beitrag

    ok it's work

  • PWM out change

    atmega64 - - Hauptforum BASCOM-AVR

    Beitrag

    okok I could use pinB7 (OC3B) the others are busy... this is the code i modified to use OC3B but its not working... (if I use OC3A instead it works...) BASCOM-Quellcode (21 Zeilen)

  • PWM out change

    atmega64 - - Hauptforum BASCOM-AVR

    Beitrag

    okok I could use pinB7 (OC3B) the others are busy... this is the code i modified to use OC3B but its not working... (if I use OC3A instead it works...) * Code: * Config Portb.7 = Output Cpwmfreq = 50 Dutycicle = 50 Cpwmfreqsng = Cpwmfreq / 10 Cpwmfreqsng = Cpwmfreqsng - 0.5 Cpwmfreqsng = Cpwmfreqsng * 3120 Cpwmfreq = Round(cpwmfreqsng) Cpwmfreq = 17160 - Cpwmfreq Enable Timer3 Load Timer3 , Cpwmfreq Tccr3a = &B10000010 Tccr3b = &B00011101 Icr3 = Cpwmfreq Cpwmfreq = Cpwmfreq / 100 Dutycicle = Cpw…

  • PWM out change

    atmega64 - - Hauptforum BASCOM-AVR

    Beitrag

    Hi, how should I change this code to have PWM signal on pin D7 (OC2A)? Quellcode (20 Zeilen)

  • Abnormal restart timer

    atmega64 - - Hauptforum BASCOM-AVR

    Beitrag

    the microprocessor i'm using is ATmega1284 BASCOM-Quellcode (3 Zeilen)

  • Abnormal restart timer

    atmega64 - - Hauptforum BASCOM-AVR

    Beitrag

    then, if I understand correctly, the problem is that I don't reset the Prescalers... how to do?

  • Abnormal restart timer

    atmega64 - - Hauptforum BASCOM-AVR

    Beitrag

    hi, maybe I didn't understand, but with this code to restart, I don't set everything? BASCOM-Quellcode (16 Zeilen)

  • Abnormal restart timer

    atmega64 - - Hauptforum BASCOM-AVR

    Beitrag

    Hi, one thing i don't understand... I used this code to set two timers: Code: '******* START TIMER PER WAVE1 E WAVE2 Dutycycle = 3 '****************TIMER0 8 bit 3247KHZ out OC0B(pin5) WAVE1 Tccr0a = &B00100011 Tccr0b = &B00001011 'PRESCALER 64 Ocr0a = 76 Pwm0b = 44 Waitus 181 'signal phasing delay '*****************TIMER2 8 bit 3247KHz out OC2B(pin20)'dutycycle variable WAVE2 Tccr2a = &B00100011 Tccr2b = &B00001011 'PRESCALER 64 Ocr2a = 153 Pwm2b = Dutycycle and this to turn them off: Code: Tccr…

  • perfect! and as for the variation of the duty cycle the only way is so? BASCOM-Quellcode (7 Zeilen)

  • Hi, in the following code, I generate two 3230kHz signals with two timers (OC1A and OC3A) The OC1A signal must vary the duty cycle as per code ... I'm not sure I'm using the best solution ... Would it be possible to use only one TIMER or avoid the loop? thank you. BASCOM-Quellcode (47 Zeilen)

  • Hi, I tried to replace the eeprom DS2431+ (now unavailable ...) with the eeprom DS28E07+ (seeing the datasheet they look the same ...) But the reading doesn't work for me ... can you help me? I wrote an init string ... with the DS2431 + both writing and reading is ok with the DS28E07 + in writing it seems ok while in reading I have problems ... from the datasheet have the same addresses ... (see pages 7 and 8 ) datasheets.maximintegrated.com/en/ds/DS2431.pdf datasheets.maximintegrated.com/en/ds/…

  • ATtiny45 reset

    atmega64 - - Hauptforum BASCOM-AVR

    Beitrag

    friends then recap: I set the fuse value like this: bascomforum.de/index.php?attac…bb1308b9aa8d488fb9f0e9398 and the example code is: BASCOM-Quellcode (22 Zeilen) do I have to do anything else to use the 16MHz clock frequency correctly?

  • ATtiny45 reset

    atmega64 - - Hauptforum BASCOM-AVR

    Beitrag

    OK thanks... a question: to use an internal clock of 16Mhz I set the fuses like this: bascomforum.de/index.php?attac…bb1308b9aa8d488fb9f0e9398 but why when I use the instruction for example waitms 500 I have a delay of 1000ms?

  • ATtiny45 reset

    atmega64 - - Hauptforum BASCOM-AVR

    Beitrag

    ok

  • ATtiny45 reset

    atmega64 - - Hauptforum BASCOM-AVR

    Beitrag

    so the reset pin should not be connected? VCC is 5V...

  • ATtiny45 reset

    atmega64 - - Hauptforum BASCOM-AVR

    Beitrag

    Hi, it's the first time I use a micro from the ATtiny family ... I have an ATtiny45, is a 8.2k resistor between the RESET and VCC ok for the reset?

  • PWM Timer0

    atmega64 - - Hauptforum BASCOM-AVR

    Beitrag

    Hi, I use an ATmega1284 I have the following code to generate a pwm on the OC1A pin BASCOM-Quellcode (13 Zeilen) * * I would like to change the code, in order to use TIMER0 and have the PWM signal on the OC0A pin … ?

  • so I can also write: Print #1, Commadbyte(0), CommandByte.Length so I send all the bytes of the Commandbyte array starting from the first one, on the Com1 port ... right?