atmel

Atmel / Arduino: ISR(TIMER0_OVF_vect) won't compile (“first defined” in __vector_16)

帅比萌擦擦* 提交于 2019-12-11 04:12:13
问题 I'm currently working on a PWM modulator to "simulate" a car engine ignition commutation. Then, I will use it to drive another microcontroller which handles the conversion from a raw signal (engine's commutator) to a clean output voltage, going through the RPM-counter's galvanometer. This project is also a pretext for me to learn how to have a better control upon my microcontroller. Well, I wrote a small program, using timer0 (8 bits), and I need to trigger two interrupt service routines

How to correctly configure interrupt for INT line of Atmel MXT641T touch chip in Android 5 kernel device tree?

三世轮回 提交于 2019-12-11 03:50:33
问题 I am having troubles getting a touch screen powered by an Atmel MXT641T on an Android 5 platform to work. The setup I have is as follows: Hardware: Inforce 6309 SBC with Qualcomm Snapdragon 410 msm8916 ARM64 processor. Custom touch screen with Atmel MXT641T controller chip. I2C connection between Atmel and Snapdragon connected to I2C0. Android 5 operating system using Linux kernel 3.10 from git://codeaurora.org/kernel/msm-3.10.git branch Rel_V1.3 (this is part of the BSP that comes with the

ATMEGA32 UART Communication

别说谁变了你拦得住时间么 提交于 2019-12-08 03:50:51
问题 I am trying to do serial communication in ATMEGA32 and I have a question: In asynchronous serial communication both UBRRH and UCSRC registers have same location. I don't know which conditions that location will act as UBRRH and for which conditions, it will act as UCSRC . I need different values for each register according to the work assigned to those registers In the datasheet, they have mentioned the use of URSEL bit for selection betweem two registers but somehow I am not getting that.

Install ssh server on embedded device

二次信任 提交于 2019-12-07 18:39:28
问题 I'm trying to connect to an embedded device through ssh . However, when trying to connect, I always get a connection refused message even when I try changing the port number. I've tried everything to resolve this issue, from changing the file in /etc/ssh/ to accept the specific port number, to sudo iptables -A INPUT -p tcp --dport ssh -j ACCEPT . After reading some comments, it came to me that maybe one of the problems is that I don't have ssh installed on my embedded device. So, how do I

ATMEGA32 UART Communication

房东的猫 提交于 2019-12-06 14:51:54
I am trying to do serial communication in ATMEGA32 and I have a question: In asynchronous serial communication both UBRRH and UCSRC registers have same location. I don't know which conditions that location will act as UBRRH and for which conditions, it will act as UCSRC . I need different values for each register according to the work assigned to those registers In the datasheet, they have mentioned the use of URSEL bit for selection betweem two registers but somehow I am not getting that. The answer is: Yes, the URSEL bit. According to the datasheet: When doing a write access of this I/O

AVR-GCC: Error: garbage at end of line

北慕城南 提交于 2019-12-06 09:03:47
问题 I have problem with stack init lines because avr-gcc returns LED_Blink.asm:10: Error: garbage at end of line On lines: ldi r17, low(RAMEND) ldi r17, high(RAMEND) And I am confused. I have already defined RAMEND. I used avr-gcc with this command: avr-gcc -x assembler -mmcu=atmega328p LED_Blink.asm My assembly code: .equ SPL, 0x3d .equ SPH, 0x3e .equ RAMEND, 0x8ff .equ PORTB, 0x05 .equ DDRB, 0x04 .org 0x000000 rjmp main main: ldi r17, low(RAMEND) out SPL, r17 ldi r17, high(RAMEND) out SPH, r17

Install ssh server on embedded device

依然范特西╮ 提交于 2019-12-06 07:04:19
I'm trying to connect to an embedded device through ssh . However, when trying to connect, I always get a connection refused message even when I try changing the port number. I've tried everything to resolve this issue, from changing the file in /etc/ssh/ to accept the specific port number, to sudo iptables -A INPUT -p tcp --dport ssh -j ACCEPT . After reading some comments, it came to me that maybe one of the problems is that I don't have ssh installed on my embedded device. So, how do I infact install ssh on an embedded device? I'm working with a FOX G20 V board with an ATMEL AT91SAM9G20. I

Atmel SAM3X dual bank switching not working

我的梦境 提交于 2019-12-04 04:39:28
问题 I'm currently working with an Atmel SAM3X8 ARM microcontroller that features a dual banked 2 x 256KB flash memory. I'm trying to implement a firmware update feature, that puts the new firmware into the currently unused flash bank, and when done swaps the banks using the flash remapping to run the new firmware. The datasheet states to do so I need to set the GPNVM2 bit, then the MCU will remap the memory, so Flash 1 is now at 0x80000 and Flash 0 at 0xC0000. This will also lead to the MCU

How to make a delay in assembly for avr microcontrollers?

不问归期 提交于 2019-12-03 18:10:17
问题 I am having a problem in calculating delays. I want to make a delay for 1 sec when I am using 1MHz clock speed for my atmega128 microcontroller. I use proteus for simulation and avr studio for coding in assembly for atmel microcontroller. For example this code is for 8MHz clock microcontroller Delay_15mS: ; For CLK(CPU) = 8 MHz LDI dly1, 120 ; One clock cycle; Delay1: LDI dly2, 250 ; One clock cycle Delay2: DEC dly2 ; One clock cycle NOP ; One clock cycle BRNE Delay2 ; Two clock cycles for

What does ((Port *)0x41004400UL) mean here?

本秂侑毒 提交于 2019-12-01 14:45:59
I'm working on a developing board that has a 32-bit ARM based microntroller on it (namely the board is Atmel SAM D21J18A). I'm still at the learning phase and I have a lot to go, but I'm really into embedded systems. I have some background in C. However, it's obviously not enough. I was looking at the codes of an example project by Atmel, and I didn't really get some parts of it. Here is one of them: #define PORT ((Port *)0x41004400UL) /**< \brief (PORT) APB Base Address */ Port is defined as: typedef struct { PortGroup Group[2]; /**< \brief Offset: 0x00 PortGroup groups [GROUPS] */ } Port;