To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 3858
3857  |  3859
Subject: 
Re: Addresses of SPI ports
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Wed, 20 May 1998 07:28:56 GMT
Original-From: 
Thomas Hauri <har@twi%stopspammers%.ch>
Viewed: 
1169 times
  
Hi

The SPI Header is connected to port D of the hc11 as follows:

Port D Bit 2 - PD2 - MISO
Port D Bit 3 - PD3 - MOSI
Port D Bit 4 - PD4 - SCK
Port D Bit 5 - PD5 - SS

All of those pins can be used for general-purpose I/O signals.

To program port D you have the following registers:

* DDRD (Data Direction Register Port D) $1009
For output set the corresponding bit to 1.
All bits 0 (input) after reset.

* PORTD (POrt D Data) $1008
Read or Write data through this register.

* SPCR (Serial Peripheral Control) $1028
Make sure that the SPI is turned off.
Bit 7 and Bit 6 of this register must be cleared (0).
Bit 7 - SPI interrupt
Bit 6 - SPI enable

With bit 5 (DWOM) you can control the Port D mode
(Port D Wired-OR Mode option)
DWOM = 0 Normal CMOS outputs
DWOM = 1 Open-drain outputs

For further information about port D please refer to the HC11A8 technical
manual.
http://www.mcu.motsps.com/cgi-bin/Lit?Table=HC11&Type=USER

it's the pdf or ps file MC68HC11A8/D

Hope that helps.

Tom

Hello.  I was wondering if anyone knows all 4 addresses for all 4 ports of
SPI header.  Thank you
--
*************************************
*         Arthur Tretyak            *
*       or just Arturchik           *
*       a-tretyak@nwu.edu           *
*************************************



Message is in Reply To:
  Addresses of SPI ports
 
Hello. I was wondering if anyone knows all 4 addresses for all 4 ports of SPI header. Thank you (26 years ago, 19-May-98, to lugnet.robotics.handyboard)

3 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR