In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Zamuel_a wrote: I have a project there I use a SX28 to interface with a SRAM memory to read and write data and I use port A for read/ write signals and such stuff and PORT B and PORT C får the actual data. I need to buffer the data in two 8 bit latches then I want to put out a address to the SRAM memory and then use PORT B and C for the data. It works fine then I write to the memory (all ports are outputs) but it seems to crash then I read sometimes. The only difference is that I shift between in and out on the ports, but I tried with slower clockspeed and alots of nops between instructions, but it didn't help. The only thing I can see is that a signal from port A that I sets low at the beginning of the program and then NEVER touch goes high and the entire port A goes high. port B and C shows about 2.5V so it looks like the entire SX28 reset by some reason? I can't find anything wrong. I set the read and write signals with setb and clrb and I tried with alots of nops between so it wasnt the "read modify write" problem. port B and port C are set with one byte at a time. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=400054 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)