microprocessors

Microprocessor to RS-232 realtime plot using PySerial/Matplotlib?

£可爱£侵袭症+ 提交于 2019-12-05 06:14:42
问题 I'm new to the world of Python and my programming skills are fairly poor but I'm trying to figure a way to use Python to display the output from an EEG circuit (using the OpenEEG circuit http://openeeg.sourceforge.net) The analogue output is amplified and processed via an ADC (in an ATmega8 microcontroller) and is converted to RS232 by a MAX232. The RS232 Signal is as follows: Byte 1: sync value 0xa5 Byte 2: sync value 0x5a Byte 3: version Byte 4: Frame number Byte 5: Channel 1 Low Byte Byte

Enabling UART on Beaglebone Black

China☆狼群 提交于 2019-12-04 17:38:31
I'm having trouble getting UART enabled. I've gone through many different directions on how to enable and troubleshoot from updating the uEnv.txt file to updating the kernel. I've come to conclude that it may be an issue with using a different kernel than the instructions, but I'm not sure? I don't know very much about the Beaglebone and I'm still learning. Whenever I try to test UART by using Python and typing the following: import Adafruit_BBIO.UART as UART UART.setup("UART1") I get the error: File "stdin", line 1, in module RuntimeError: Unable to export UART channel. I'm also starting to

Microprocessor to RS-232 realtime plot using PySerial/Matplotlib?

守給你的承諾、 提交于 2019-12-03 20:32:29
I'm new to the world of Python and my programming skills are fairly poor but I'm trying to figure a way to use Python to display the output from an EEG circuit (using the OpenEEG circuit http://openeeg.sourceforge.net ) The analogue output is amplified and processed via an ADC (in an ATmega8 microcontroller) and is converted to RS232 by a MAX232. The RS232 Signal is as follows: Byte 1: sync value 0xa5 Byte 2: sync value 0x5a Byte 3: version Byte 4: Frame number Byte 5: Channel 1 Low Byte Byte 6: Channel 1 High Byte Byte 7: Channel 2 Low Byte Byte 8: Channel 2 High Byte ... Bytes 9-16 are for

What is meant by the FENCE instruction in the RISC-V instruction set?

血红的双手。 提交于 2019-12-03 12:41:58
问题 While going through the RISC-V ISA, I have seen an instruction in the memory model section (FENCE instruction). What does it mean exactly? 回答1: I've found one case when using FENCE instruction is just necessary. Example: Some module in a SoC generates interrupt by writting value into CSR 0x783 (MIPI) via HostIO bus. Firmware jumps to the interrupt handler. Handler tries to reset 'pending' bit in a user implemented device by writting 1 into register. Such operation was compiled as a 'store'

How many registers are there in 8086/8088?

萝らか妹 提交于 2019-12-03 07:42:24
问题 I took Computer Architecture course and I understood that processor has 32 registers each of 32 bit. Now I am studying computer architecture course in which I read that 8086 has 8 registers only. But the book I read and this website shows many registers. I am getting confused about the registers in 8086 and 8088. Please help me out. NOTE: I have a good understanding of different register sizes in different processors. I am just getting confused in the number of registers. 回答1: The 8086 and

What are 16, 32 and 64-bit architectures?

邮差的信 提交于 2019-12-03 04:15:11
问题 What do 16-bit, 32-bit and 64-bit architectures mean in case of Microprocessors and/or Operating Systems? In case of Microprocessors, does it mean maximum size of General Purpose Register s or size of Integer or number of Address-line s or number of Data Bus line s or what? What do we mean by saying " DOS is a 16-bit OS ", " Windows in a 32-bit OS ", etc...? 回答1: The difference comes down to the bit width of an instruction set passed to a general purpose register for operating on. 16 bits can

VHDL microprocessor/microcontroller

点点圈 提交于 2019-12-03 04:07:35
I'm learning to code on Xilinx (VHDL). Next, I want to make a simple microprocessor/microcontroller and on the way learn a little about slice components. So my goal is try to code an 8 bits microprocessor using an AMD 2901 (4 bits-slice). (I already have the code of the 2901 and all its information about its input and output signals.) I know the first step would be make the architecture of the microprocessor so I ended up with something like this (I understand that the bandwidth of the bus will be very different for what I'm looking for). http://www.cs.binghamton.edu/~reckert/wk15fig1.JPG

What are 16, 32 and 64-bit architectures?

点点圈 提交于 2019-12-02 16:41:26
What do 16-bit, 32-bit and 64-bit architectures mean in case of Microprocessors and/or Operating Systems? In case of Microprocessors, does it mean maximum size of General Purpose Register s or size of Integer or number of Address-line s or number of Data Bus line s or what? What do we mean by saying " DOS is a 16-bit OS ", " Windows in a 32-bit OS ", etc...? The difference comes down to the bit width of an instruction set passed to a general purpose register for operating on. 16 bits can operate on 2 bytes, 64 on 8 bytes of instruction at a time. You can often increase throughput of a

What addressing mode is used in 'mov cx, [bp+6]'?

霸气de小男生 提交于 2019-12-02 08:32:00
问题 What addressing mode is used in "mov cx, [bp+6]"? The processor is intel 8086. I am studying "Microprocessor and Interfacing" by Douglas V. Hall. I know its memory addressing mode. But not sure whether its based addressing mode or index addressing mode? 回答1: [bp+6] is the based addressing mode. From the original 8086 docs: In based addressing, the effective address is the sum of a displacement value and the content of register BX or register BP. Indexed addressing mode is similar but with the

What addressing mode is used in 'mov cx, [bp+6]'?

梦想的初衷 提交于 2019-12-02 04:11:05
What addressing mode is used in "mov cx, [bp+6]"? The processor is intel 8086. I am studying "Microprocessor and Interfacing" by Douglas V. Hall. I know its memory addressing mode. But not sure whether its based addressing mode or index addressing mode? [bp+6] is the based addressing mode. From the original 8086 docs: In based addressing, the effective address is the sum of a displacement value and the content of register BX or register BP. Indexed addressing mode is similar but with the SI or DI registers. Basically, you have the following modes: Direct memory accessing like [1234] . Register