Hallo brauche dringend eure Hilfe und zwar habe ich den 18f2550 in Assembler programiert das die LED leuchten das funktioniert auch richtig aber wenn ich sie blinken lassen will leuchten sie nicht mehr kann mir jemand mit der Konfiguration des internen Oszilators helfen. MFG
Datenblatt: INTHS Internal Oscillator used as microcontroller clock source, HS Oscillator used as USB clock source
das ist mein Code : p=18f2550 #include <P18f2550.inc> MOVLW 0x0F MOVWF ADCON1 bsf T1CON,3 CLRF TRISB clrf 49h clrf 50h anfang: clrf PORTB call Zeit bsf PORTB,0 bsf PORTB,1 goto anfang Zeit: movlw d'200' movwf 50h schl2 movlw d'250' movwf 49h schl1 nop nop nop nop nop nop nop decfsz 49h,f goto schl1 decfsz 50h,f goto schl2 return end Vieleicht habe ich da ein Fehler? Ich stelle beim Brennen auf INTHS Internal Oscillator used as microcontroller clock source.
Franz schrieb: > anfang: clrf PORTB > call Zeit > bsf PORTB,0 > bsf PORTB,1 > goto anfang achso nach dem bsf PORTB,1 kommt nochmal call Zeit. aber es geht nichts
Address Value Field Category Setting USBPLL Full-Speed USB Clock Source SelectionClock src from 96MHz PLL/2 300001 0B OSC Oscillator INTOSC: USB-HS FCMEN Fail-Safe Clock Monitor Enable Disabled IESO Internal External Switch Over ModeDisabled 300002 09 PUT Power Up Timer Disabled BODEN Brown Out Detect Disabled in hardware, SBOREN disabled BODENV Brown Out Voltage 4.2V VREGEN USB Voltage Regulator Disabled 300003 1F WDT Watchdog Timer Enabled WDTPS Watchdog Postscaler 1:32768 300005 83 CCP2MUX CCP2 Mux RC1 PBADEN PortB A/D Enable PORTB<4:0> configured as analog inputs on RESET LPT1OSC Low Power Timer1 Osc enable Disabled MCLRE Master Clear Enable MCLR Enabled,RE3 Disabled 300006 85 STVR Stack Overflow Reset Enabled LVP Low Voltage Program Enabled XINST Extended Instruction Set Enable bitDisabled 300008 0F CP_0 Code Protect 00800-01FFF Disabled CP_1 Code Protect 02000-03FFF Disabled CP_2 Code Protect 04000-05FFF Disabled CP_3 Code Protect 06000-07FFF Disabled 300009 C0 CPB Code Protect Boot Disabled CPD Data EE Read Protect Disabled 30000A 0F WRT_0 Table Write Protect 00800-01FFF Disabled WRT_1 Table Write Protect 02000-03FFF Disabled WRT_2 Table Write Protect 04000-05FFF Disabled WRT_3 Table Write Protect 06000-07FFF Disabled 30000B E0 WRTC Config. Write Protect Disabled WRTB Table Write Protect Boot Disabled WRTD Data EE Write Protect Disabled 30000C 0F EBTR_0 Table Read Protect 00800-01FFF Disabled EBTR_1 Table Read Protect 02000-03FFF Disabled EBTR_2 Table Read Protect 04000-05FFF Disabled EBTR_3 Table Read Protect 06000-07FFF Disabled 30000D 40 EBTRB Table Read Protect Boot Disabled
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.