texas-instruments

How to write two bytes to a chunk of RAM repeatedly in Z80 asm

帅比萌擦擦* 提交于 2021-02-08 13:12:32
问题 I'm trying to write two bytes (color values) to the VRAM of my TI-84 Plus CE-T calculator, which uses the Zilog eZ80 CPU. The VRAM starts at 0xD40000 and is 0x25800 bytes long. The calculator has a built in syscall called MemSet , which fills a chunk of memory with one byte, but I want it to alternate between two different values and store these in memory. I tried using the following code: #include "includes\ti84pce.inc" .assume ADL=1 .org userMem-2 .db tExtTok,tAsm84CeCmp call _homeup call

Convert IEEE float to TI TMS320C30 32bits float in python

穿精又带淫゛_ 提交于 2021-01-29 07:50:52
问题 I need to convert a python float to a TI DSP TMS320C30 float representation, following this convention: http://www.ti.com/lit/an/spra400/spra400.pdf#page=13 I've tried a few things, but I can't seem to wrap my head around the proposed algorithm. I also found a C version of the algorithm, but it looks like it is a version that runs in the TI DSP, so there are operations that I can't figure out (reverse the sign, for instance). I have a very naive implementation below, but it doesn't work... #

Apply and commit a patch from bitbake recipe

孤街浪徒 提交于 2020-07-20 04:19:11
问题 I am observing that the yocto build system is just applying my patch instead of applying and committing the patch on the cloned git repo. Original bitbake ( u-boot-ti-staging_2018.01.bb ) file. require u-boot-ti.inc PR = "r19" BRANCH = "ti-u-boot-2018.01" SRCREV = "8b2f1df4b55bc0797399a21d42ac191d44f99227" Modified bitbake file, added SRC_URI to the file. require u-boot-ti.inc PR = "r19" BRANCH = "ti-u-boot-2018.01" SRCREV = "8b2f1df4b55bc0797399a21d42ac191d44f99227" SRC_URI += "file://0001

[TM4C1294NCPDT ]make the led blink continuously while pressing a switch if not make the led blink a fixed number of times

我与影子孤独终老i 提交于 2020-01-25 10:13:07
问题 The board in use is the TM4C1294NCPDT, the idea is that while the switch 1 is pressed the led blinks off and on continuously ( I understand that part) and in the moment the switch is not pressed begin to blink a fixed number if times,lets say 5, that's where I'm and I do not see how to state the condition when the switch its not pressed. I did a flow chart and the code. The flash led 1 or 2 are only tags to the instructions to turn on and off the led. #include <stdbool.h> #include <stdint.h>

do_install error while running custom bitbake in poky build

断了今生、忘了曾经 提交于 2020-01-12 05:43:05
问题 I am using latest poky-am335x to build simple helloworld application. With some workaround I can able to compile the application. I am doing lot of trails to install binaries but build is throwing error. error log : DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common'] DEBUG: Executing shell function do_install NOTE: make -j 4 DESTDIR=/home/pis1kor/workspace/poky-am335x/build/tmp/work/armv7a-vfp-neon-poky-linux

Error while trying to call a class method: attempt to index local 'self' (a nil value) - Lua

£可爱£侵袭症+ 提交于 2019-12-31 03:27:10
问题 I'm creating a lua script that should run on the TI-Nspire calculator. The problem is that while running my script I get the error Attempt to index local 'self' (a nil value) when the button:activate() method is called. The parser says the error is in the 8th line in the code below. The problematic code is as follows: button = class(view) function button:init() self.selected = false end function button:activate() self.selected = true end I call the activate function like this: item = button()

TI TivaC Launchpad I2C Errors

假如想象 提交于 2019-12-24 04:55:09
问题 I am trying to communicate over I2C with a Pololu MinIMU9v2 from a TM4C123GXL Launchpad , but every time I try to write to the bus, I am getting I2C_MASTER_ERR_ADDR_ACK and I2C_MASTER_ERR_DATA_ACK . Printing out the slave address shows that it looks right, so I'm thinking this may be something I may be doing wrong with the use of the TI Launchpad driver library. Here's the initialization routine: void InitI2CBus(void) { // Initialize the TM4C I2C hardware for I2C0 SysCtlClockSet(SYSCTL_SYSDIV

How do I write a memory barrier for a TMS320F2812 DSP?

允我心安 提交于 2019-12-21 02:55:21
问题 I've looked through the TI C/C++ compiler v6.1 user's guide (spru514e) but didn't find anything. The asm statement doesn't seem to provide anything in this regard, the manual even warns against changing values of variables (p132). The GNU extension for declaring effects on variables is not implemented (p115). I also didn't find any intrinsic for memory barriers (like __memory_changed() in Keil's armcc). Searching the web or the TI forums also turned up nothing. Any other hints how to proceed?

TI-84 Plus Random Number Generator Algorithm

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-18 12:17:30
问题 Edit: my main question is that I want to replicate the TI-84 plus RNG algorithm on my computer, so I can write it in a language like Javascript or Lua, to test it faster. I tried using an emulator, but it turned out to be slower than the calculator. Just for the people concerned: There is another question like this, but answer to that question just says how to transfer already-generated numbers over to the computer. I don't want this. I already tried something like it, but I had to leave the

What is the fastest infinite loop in TI-84+ Basic?

天大地大妈咪最大 提交于 2019-12-14 02:16:34
问题 Since there are technically 4 types of loops (for, while, repeat, and goto/lbl), which one is the fastest to use "infinitely"? Here is what I mean: while 1 End repeat 0 End lbl 1 goTo 1 for(n, 1, [number large enough to function as practically infinite] End Which of these is the fastest, or is there an even faster one? 回答1: In terms of both size and speed, the repeat and while loops are the fastest. While 1 and Repeat 0 are both 2 bytes, while End is 1. In terms of space, they are both 4