-
Thread
Beispielcode für MS5534 Drucksensor in BASCOM?
na schon fündig geworden mit dem BASCOM-Code ? Wenn nicht, probier das mal : [pre]$regfile = "m644def.dat" $crystal = 8000000 $hwstack = 32 $swstack = 32 $framesize = 40 $prog &HFF , &HE2 , &HD9 , &HFE ' BODEN=1,8V, JTAG disabled, sonst Standard
, Db6 = Portc.4 , Db7 = Portc.5 , E = Portc.1 , Rs = Portc.0 Config Lcd = 16 * 2 , Chipset = Dogm162v3 ' Timer1, Fast-PWM (Mode 15), Prescale = 1, variable Frequenz, Tast 1:1, OC1A -> ca. 32.768Hz Tccr1a.7 = 0 ' COM1A1 Tccr1a.6
-
Thread
NuMicroM2351 "TARGET: NuMicro.cpu - Not halted"
is already registered in 'numicro' context Debug: 161 6 command.c:398 register_command(): command 'M2351_erase' is already registered in 'numicro' context Debug: 162 6 command.c:398 register_command(): command 'NUC505_sram_ini' is already registered in 'numicro' context Debug: 163 6 command.c:398
5996 target.c:2234 target_read_u32(): address: 0xe000ed00, value: 0x0bf11477 Debug: 291 5996 cortex_m.c:1984 cortex_m_examine(): Cortex-M7 r15p7 processor detected Debug: 292 5996 cortex_m.c:1993 cortex_m_examine(): cpuid: 0x0bf11477 Debug: 293 5996 hla_target.c:750 adapter_read_memory(): adapter_read_memory
-
Thread
Problem Displayansteuerung ATMEGA1280
ich möchte ein 4x16 LCD mit einem ATmega2560 ansteuern. Ich habe bereits ein Display mit mit einem 162 angesteuert... hierfür hatte ich 2 Ports verwendet... Da Ich aber den 4 Bit-modus verwende und nur die 3 steuerleitungen habe, habe ich das Display komplett an Port K angeschlossen... Irgendwie funktioniert
********** //TIMER1 initialize - prescale:8 // WGM: 0) Normal, TOP=0xFFFF // desired value: 1mSec // actual value: 1,000mSec (0,0%) void timer1_init(void) { //TCCR1B = 0x01; //start TCNT1H = 0xF8; //setup TCNT1L = 0xCD; OCR1AH = 0x07; OCR1AL = 0x33; OCR1BH = 0x07; OCR1BL = 0x33
-
Thread
Programmablauf für 3-Kanal LED-Fading
einem MAX Wert rauf und runter, ist aber schon gut auf die 3 LEDs erweiterbar. [avrasm] .include "m8def.inc" .def counter = r16 ;PWM-Counter .def temp = r17 ;temp-Register .def port = r18 ;Port-Byte .def led1 = r19 ;Helligkeitswert 1 mit Gammakorrektur .def
0,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6,7,7,7,7,7,7,8,8,8,8,8,9,9,9,9,10,10,10,10,10,11,11,11,11,12,12,12,13,13,13,13,14,14,14,15,15,15,15,16,16,16,17,17,17,18,18,18,19,19,20,20,20,21,21,22,22,22,23,23,24,24,25,25,26,26,26,27,27,28,28,29,30,30,31,31,32,32,33,33,34,35,35,36,37,37,38,38,39,40,41,41,42,43,43,44,45,46,46,47,48,49,50,51,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,71,72,73,74,75,77,78,79,80,82,83,84,86,87,89,90,92,93,95,96,98,99,101,102,104,106,107,109,111,113,115,116,118,120,122,124,126,128,130,132,134,137,139,141,143,145,148,150,153,155,157,160,162,165,168,170,173,176,179,181,184,187,190,193,196,199,202,206,209,212,216,219,222,226,229,233,237,241,244,248,252,255 [/avrasm] Jetzt würde ich gern eine Art Programmablauf im Programmspeicher speichern
-
Thread
Probleme beim Programmieren des STM32F107 über JTAG Adapter und OpenOCD
registering 'ocd_dap'... Debug: 108 9 command.c:364 register_command_handler(): registering 'ocd_cortex_m3'... Debug: 109 9 command.c:364 register_command_handler(): registering 'ocd_cortex_m3'... Debug: 110 9 command.c:364 register_command_handler(): registering 'ocd_cortex_m3'... Debug: 111 9 command.c
... Debug: 157 11 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_cortex_m3 reset_config sysresetreq Debug: 158 11 command.c:151 script_debug(): command - ocd_cortex_m3 ocd_cortex_m3 reset_config sysresetreq User : 160 11 command.c:557 command_print(): cortex_m3 reset_config
-
Thread
Denkfehler mit PCA9536 (Problem)
Wie lange soll das denn noch so weitergehen? Sisyphus ist im Vergleich zu dir ein Amateur. http://de.m.wikipedia.org/wiki/Sisyphos > > Manche haben mich gross angesehen, was das soll. Dann merkt man wie der > Groschen fällt. Es ist schon fast eine Gabe, komplizierte Zusammenhänge > einfach zu Erklären
Was ist mit den China Teilen? Dachte so an HT16K33. Sollen so um 2x 9x9 LED Matrix schalten = 162 LED. Oder den AM2321 (Temp+Feuchte, DB auf chinesisch) Bin noch nicht bis zum Datenblatt gekommen. Werde das DB jetzt anders sehen. achim
-
Thread
NEC Beamersteuerung mit Atmega8U2
Sackgasse befinde, möchte ich das Forum nutzen, um nach Hilfe zu suchen. Mein Ziel ist es einen NEC M311W Beamer über die RS 232 Schnittstelle von einem Atmega 8U2 aus Ein zu schalten. Dazu hätte der Beamer gerne den HEX Code 02H 00H 00H 00H 00H 02H mit der Baudrate 9600Bd. Vom PC aus habe ich das getestet
CONTROL UCSRB #define UART0_DATA UDR #define UART0_UDRIE UDRIE #elif defined(__AVR_ATmega162__) /* ATmega with two USART */ #define ATMEGA_USART0 #define ATMEGA_USART1 #define UART0_RECEIVE_INTERRUPT USART0_RXC_vect #define UART1_RECEIVE_INTERRUPT USART1_RXC_vect #define UART0
-
Thread
User code auf Eval-Board ET-STM32
c -fmessage-length=0 -MMD -MP -MF"startup_stm32f10x_hd.d" -MT"startup_stm32f10x_hd.d" -mcpu=cortex-m3 -mthumb -g3 -gdwarf-2 -o "startup_stm32f10x_hd.o" "../startup_stm32f10x_hd.S" ../startup_stm32f10x_hd.S: Assembler messages: ../startup_stm32f10x_hd.S:1: Error: junk at end of line, first unrecognized
startup_stm32f10x_hd.S:160: Error: bad instruction `export NMI_Handler[WEAK]' ../startup_stm32f10x_hd.S:162: Error: bad instruction `endp' ../startup_stm32f10x_hd.S:163: Error: bad instruction `hardfault_handler PROC' ../startup_stm32f10x_hd.S:165: Error: bad instruction `export HardFault_Handler[WEAK]'