问题标签 [atmel]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
operating-system - 是否可以将英特尔奔腾架构的 XINU 版本移植到 Atmel AVR STK500 上?
我正在尝试开发 Xinu,我想知道是否可以将针对英特尔奔腾架构编写的 XINU 移植到 Atmel AVR STK500 开发板上。不必只是那个开发板。它也可以是任何其他开发板。
谢谢 注意
c - Atmel 处理器已复位,但 MCUSR 中未指示复位源
短篇小说:
那些不会设置MCUSR
ATmega 处理器的位但仍会导致复位的复位条件是什么?
长篇大论:
我在 ATmega168 中使用掉电检测,并在我的代码中有一个位置来处理它。如果我的系统断电,一个电容器会将其保持在掉电水平以上约半秒,当我恢复供电时,掉电处理程序成功运行。(我检查了中的掉电位MCUSR
。)
但是,当我慢慢降低系统电压并慢慢恢复时,处理器重新启动,掉电处理例程不运行:MCUSR
为零!!!(我通过 DebugWire 使用外部调试器来检查它。)
什么会导致这种情况?如果是其他东西,比如意外启用了看门狗(我不使用它,并在启动时禁用它),那么MCUSR
.
但是不,它既不是看门狗复位(第 3 位)、掉电复位(第 2 位)、外部复位(第 1 位),也不是上电复位(第 0 位),那么如果两者都不是,是什么导致了复位以上??
另一个奇怪的事情是:在这种情况下,在某些情况下会周期性地发生复位,MCUSR 中的值总是为零。
否则,如果不发生这种情况,系统将始终完美运行。
编辑:
我在其他地方找不到结论性的答案,堆栈溢出或类似的与软件相关的错误会导致什么样的重置?也许这些是可能重置处理器的条件,让 MCUSR 独处?我认为这种情况只会破坏 RAM 甚至程序计数器,但不会导致重置。
c - Using LUFA as CDC for String Transmission
I'm trying to use my AT90USB162 (Minimus USB board) as a CDC for sending a constant string to an hyperterminal connected to a comport. So I got the demo code Demos/Device/ClassDriver/VirtualSerial and made some changes:
In makefile:
In VirtualSerial.h:
- Removed all entries related to Joystick.h, since AT90USB162 does not have it
- Created the header of functon SendSpecificString() (in exchange of the old CheckJoystickMovement(), which was related to the Joystick.h)
In VirtualSerial.c:
From SetupHardware(): removed call to Joystick_Init(), so the new code is (without comments).
Removed the void CheckJoystickMovement(void) and created the void SendSpecificString(void), based on the first, but without the joystick stuffs:
And finally in main(): exchanged the CheckJoystickMovement() call to the void SendSpecificString() call.
So, code builds and I burn into AT90USB162 and enable it. The comport (#6 in my case) appears and I can connect to it from hyperterminal (I'm using HypoTerminal most of the times, but same result occurs with Microsoft Hyperterminal). When I connect to the comport, the terminal does not get stuck as expected, however I expected also that the string ReportString = "data packet" would appear continuously in hyperterminal, but actually nothing appears. Then, what would have I missed?
Thank you.
assembly - 有关新 AVR 指令 LAC、LAS、LAT 和 XCH 的更多详细信息
查看 AVR 指令集,2010 年增加了 4 条指令
有谁知道什么芯片有这些说明
哪些工具支持这些说明
有关他们做什么的更多信息
(Z) <- Rd v (Z), Rd <- (Z)
这是否意味着 Rd 和 (Z) 获得相同的值,或者 Rd 获得 Z 所指向的内容的预修改值?
assembly - 在 AVR 中断中保留 sreg
AVR 微控制器中用于保存状态寄存器 sreg 的机制是什么? RETI
意味着这些位不在堆栈上。通用寄存器之一是否也是 sreg 或类似的东西?
atmel - Atmel UC3 - 如何获取序列号?
每个 Atmel UC3 显然都有一个唯一的序列号。有谁知道我如何在软件中检索它?
assembly - ATmega128:加减 16 位数字(汇编)
我正在使用 ATmega128 微控制器,据说需要添加两个 16 位数字。我正在使用 AVR Studio,这是我目前得到的:
这与我第一次使用任何类型的程序集相距不远,我知道我做错了什么,但似乎无法弄清楚是什么。我错过了进位标志吗?
arm - 缺少文件异常.h
我最近刚刚开始使用 Atmel Studio 6 对我最近购买的 SAM3S4A 进行编程。编译时,它从文件“pio_handler.c”中声明文件“exceptions.h”丢失。在 Atmel 程序文件文件夹的不同位置似乎有许多相同文件的副本。我在哪里可以找到要包含的该文件的正确副本,以便我最终可以使用该芯片?
c - C 未定义的引用
我有以下代码:
主程序
校验和.c
校验和.h
编译时出现以下错误:
我无法弄清楚问题是什么?
assembly - 组装说明
有人可以解释一下以下汇编代码片段的作用吗?我不太确定最后一行的真正作用。
我特别想知道最后一行的真正作用。它是否在 OR 语句之后将寄存器 16 的值向左移了两个?
非常感谢。