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
Beitragthank 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
Beitragsorry 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
Beitragok it's work
-
PWM out change
Beitragokok 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
Beitragokok 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
BeitragHi, how should I change this code to have PWM signal on pin D7 (OC2A)? Quellcode (20 Zeilen)
-
Abnormal restart timer
Beitragthe microprocessor i'm using is ATmega1284 BASCOM-Quellcode (3 Zeilen)
-
Abnormal restart timer
Beitragthen, if I understand correctly, the problem is that I don't reset the Prescalers... how to do?
-
Abnormal restart timer
Beitraghi, maybe I didn't understand, but with this code to restart, I don't set everything? BASCOM-Quellcode (16 Zeilen)
-
Abnormal restart timer
BeitragHi, 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…
-
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
Beitragfriends 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
BeitragOK 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
Beitragok
-
ATtiny45 reset
Beitragso the reset pin should not be connected? VCC is 5V...
-
ATtiny45 reset
BeitragHi, 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
BeitragHi, 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 … ?