6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Nov 23, 2024 3:00 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Mon May 08, 2017 9:52 pm 
Offline

Joined: Mon May 08, 2017 9:38 pm
Posts: 1
Hi, I have a Mensch 265QBX microcomputer, and unable to connect to it over serial.

http://wdc65xx.com/mensch-w65c265qbx-getting-started/#

I bought the recommended TTL to USB interface from SparkFun, and I'm pretty confident that the serial module is working (it echos characters back to my terminal with a TX/RX loopback). The serial board is happily providing the 265QBX with 3.3v, as far as I can tell.

Upon power-up, ALL LEDs light (four red, four green), then after about 20 seconds the RX LED (on the serial board) starts flashing for about 20-30 seconds, like the board is loading something. But I never get a ROM monitor.

It seems the default settings are 9600/8/N/1, but I can't get anything out of the board. I've also tried swapping the TX/RX pins. I have nothing else connected to the board. On some terminal programs, I get a string of periods. (I've tried Minicom, CoolTerm and GNU screen).

Am I missing something obvious here? Bad board? The documentation and help for this thing is pretty sparse...

Thanks.


Top
 Profile  
Reply with quote  
PostPosted: Mon May 08, 2017 11:09 pm 
Offline
User avatar

Joined: Wed Mar 01, 2017 8:54 pm
Posts: 660
Location: North-Germany
Hi Hartze11 - welcome :)

I do not have that tiny board but the SXB board containing the same MPU. It is powered through USB - so to say the Spark Fun is "integrated". Catching the first greeting string is difficult, because my terminal program won't start using the serial port simply because the port isn't present unless the board is attached ...

So you may use the reset button to look whether something changes. Your settings (9600/N/8/1) is correct. Your terminal settings should disable the use of RTS(P57, J5.6) / CTS(P56, J5.2) ("Flow control = none") but your interface should be connected to these signals as well as to RxD(P66, J5.4) / TxD(P67, J5.5). If without flow control still nothing appears, try RTS/CTS handshake as well.

You may also check PHI2 (J2p4). It should start with 32,768 KHz (briefly) then switching to 3,6864 MHz. If this won't appear the crystal may be poor or broken. You could try to get it running with a wet finger across the pins of the 3,6MHz crystal - this way you add a parallel "resistor" which helps the oscillator to get running.

You could check the Reset signal at the button. One side should show Vcc the other GND. Pressing the button should lower Vcc to GND.

Good luck !


edit(1): what I remember when trying crystals with higher frequencies: each time the Reset button was hit, the high speed oscillator was turned off then on again - but if the crystal frequency was not 3,6864 MHz the terminal settings didn't work although the default setting of the Mensch monitor is 9600/8/N/1 for 3,6864 MHz. So I was forced to start with 3,6864 then pull out and replace the crystal and sometimes gave it a little kick (wet finger).

The 32 KHz oscillator is always running. But it is a bit difficult to check - on pin 37 of the MPU. Because the MPU starts with this slow clock, nothing would happen if this clock is not running.


Last edited by GaBuZoMeu on Tue May 09, 2017 12:26 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
PostPosted: Tue May 09, 2017 12:13 am 
Offline

Joined: Sat Dec 13, 2003 3:37 pm
Posts: 1004
GaBuZoMeu wrote:
You could try to get it running with a wet finger across the pins of the 3,6MHz crystal - this way you add a parallel "resistor" which helps the oscillator to get running.

Does this fall within the "lift your Apple /// 4" off the desk and drop it" family of diagnostics?

:)


Top
 Profile  
Reply with quote  
PostPosted: Tue May 09, 2017 12:27 am 
Offline
User avatar

Joined: Wed Mar 01, 2017 8:54 pm
Posts: 660
Location: North-Germany
:) :)
no its a simple way to give a crystal oscillator a little kick if it won't run otherwise :)


Top
 Profile  
Reply with quote  
PostPosted: Tue May 09, 2017 12:51 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8544
Location: Southern California
It's to bias the input.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
PostPosted: Tue May 09, 2017 11:40 am 
Offline
User avatar

Joined: Wed Mar 01, 2017 8:54 pm
Posts: 660
Location: North-Germany
hartze11 wrote:
...
then after about 20 seconds the RX LED (on the serial board) starts flashing for about 20-30 seconds, like the board is loading something. But I never get a ROM monitor.
Hmmm, if the board is transmitting its greeting message using a totally wrong adjusted baudrate, you would notice the same.

During startup the µC checks whether there is external ROM with a "WDC" (or WDM ?) signature. If so, it would leaving the monitor. If not, it starts FCLK (3,6864 MHz) wait for stabilization, switch to FCLK, then wait for one timer T1 (CLK (32 KHz) driven) to wrap around, and then try to determine the FCLK frequency. After that the UART is initialized and the greeting message is transmitted.

Now, if the FCLK (3,6864 MHz) is ok, but CLK not, just receiving some noise, hum, etc. this long delay could be possible as well as the wrong baudrate.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 39 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: