This is a multi-part message in MIME format. ------=_NextPart_000_00A1_01C2C8C1.613E2060 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I've got a 50MHz SX18AC that's giving me the hump. Attached are pics of the operation of the following SX code. The Scenix waits for a handshake (r_ack) from a PIC and signals receipt of r_ack by triggering a 74HC123 (set to 8us) with s_ack. The PIC sees this 8us pulse and then carries on to other functions The top frame is the first 1+ ms after the two micros are told to start talking. The second frame is a magnification of the problem area, and the third frame is how the sequence should be (and is with the extra clrb) The problem is that s_ack will not clear unless it is told to twice. I've tried more NOPs, delays of ridiculous length (this is meant to be a high speed transfer routine), but only an extra clrb will do it. I've noticed this happen on another output pin that has just a 10k pulldown connected, and it happens on other SX18s. The circuit has been checked and checked but there's nothing I can see that should make a_ack go low for just 1 cycle and then go high again Any ideas ? Oh yes, another thing. The SX appears to take about 160ns (8 IC) to respond to its r_ack pin going high (the yellow trace, frame 2, sb r_ack = 2 IC) yet I'd have thought this is much too long before s_ack goes high ;================================================== pulse equ ra.0 ;show activity r_ack equ ra.2 ;receive acknowledge s_ack equ ra.3 ;send acknowledge (via 74HC123) ;================================================== org $00 start mov ra,#%0000 ;initialise port lines mov rb,#%00000000 mode $0c ;PortB Schmitt Trigger on mov !rb,#%00000000 mode $0d ;PortB as TTL mov !rb,#%11111111 mode $0e mov !rb,#%00000000 ;PortB pull-ups on mode $0f ;Set Mode to Direction configuration mov !ra,#%0100 ;ra.2 as "Data Ready" input ; 0 74LS123 trigger ; 1 data ready ; 0 direction ; 0 pulse mov !rb,#%11111111 ;i/p to parallel load data mov count,#250 ;init delay pud call delay decsz count jmp pud jmp pbon ;================================================ ; Approx 250us delay ;================================================ del250 mov cu_hi,#-16 dloop15 mov cu_lo,#-195 dloop25 incsz cu_lo jmp dloop25 incsz cu_hi jmp dloop15 ret ;================================================ ;start-up synchronisation of PIC and SX ;PIC and SX are both stopped here pbon sb r_ack ;wait until push button starts PIC jmp $-1 ;and it sends pulse setb s_ack ;send acknowledge nop nop clrb s_ack tend setb pulse ;loop here call del250 clrb pulse call del250 jmp tend ;SX will not clear s_ack pin unless an extra clrb is used setb s_ack ;send acknowledge nop nop clrb s_ack nop clrb -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body ------=_NextPart_000_00A1_01C2C8C1.613E2060 Content-Type: image/gif; name="ack_seq.gif" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="ack_seq.gif" R0lGODlhxwLHAbMAAAAAAAB7ewB7hACEhAD/AAD//3sAhHuEAP8AANZSgYSEAISEhP+EhMbGxv// AP///ywAAAAAxwLHAQAE/hDISau9OOvNu/9gKI5kaZ5oqq5s675wLM90bd94ru987//AoHBILBqP yKRyyWw6n9CodEqtWq/YrHbL7Xq/4LB4TC6bz+i0es1uFx/wxwLhrtvv+Lxe9Wj453uBgoOEhWR9 fwxBA4uNQIyPjj+Qk5I+lIZ1iA0LipGflaCXlj2YpaQ8pplsm52oO6qwrzqxtLM5tbi3q2etAXHA wcLDxMXDDMbJystwALk4zzPAyMzV1nHU19rDFdE23i3E2dvkx+XbGeC8Yq0Fdw/v8Xbw8+uD7fKa +W70+vaB+OoJ9EeQ3z+Afji5G/gizgRgEhz+6GeQYRuKB98lXBBgVw14/upCNGsGgGRJeM1Cuuin MkZLPt08rrzw8kVNEhgp3MxoxZdMac5kjKQ49GREehBjsPw5UyfTFTmDigKKYSdPKj6n6gApFKXE oiSLGoWxVOvHmGaF0nyKIqoEq1elZA3VgytZpEeNih1qkuwEuCoAj8AoGEXhD1EPm1C8wa3UuGUC FlyZE6zXvEf7htt3kTPkNZIbmkwq0YfjtkQvW84b9vQJ12ZgR/b8OU3ocJfH6pWt9u7X0cB/a95s kRXt2r02Luyqe/fY1sNZ8B4znd1x28gvbuwozWtr5+Cjw2RMgjziv2yhoqVrI3F6E47NZx8y925E 1qqReq8++PEoHmWx/ncDYe+9tlZaDaUzXxj1UWbBat9lxh8IdgmIQ4D/5UAggn5Z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