Problem with spi clock

Started by Pascal in 68HC1211 years ago 8 replies

Hello, I use 9s12xdpa512. Fbus is 40Mhz. I use spi clock at maximum frequency (spibr=0). In my case the frequency is 20MHz. My card is four...

Hello, I use 9s12xdpa512. Fbus is 40Mhz. I use spi clock at maximum frequency (spibr=0). In my case the frequency is 20MHz. My card is four plane. When i put the scope on the sck pin i have this signal (yellow sck pin, blue 5V signal (power))http://www.cijoint.fr/cij42138224615403.jpg The signal is very bad and i don't understand why. My scope is a 100Mhz. If i use spi clock at 4 MHz for exa...


MAX 3100 using SPI

Started by rlewis51 in 68HC1213 years ago 6 replies

Has anyone here had experience with interfacing the S912 to a MAX3100 through the SPI ? Any help would be appreciated. ...

Has anyone here had experience with interfacing the S912 to a MAX3100 through the SPI ? Any help would be appreciated. -Roger


SPI in slave mode

Started by Ming Jiang in 68HC1213 years ago

I am working on an application in which HC16 communicates with HC12 via SPI. HC12 is set as a slave and is configurated for interrupt driven....

I am working on an application in which HC16 communicates with HC12 via SPI. HC12 is set as a slave and is configurated for interrupt driven. HC12 loads off incoming byte from HC16 whenever SPIF flag set (interrupt triggered after completion). Using the same clock, HC16 master receives a returning byte from HC12 on MISO. // HC12 side, init SPI, set it as


Looking for SD Card code

Started by Donald E Haselwood in 68HC1213 years ago 5 replies

Is there any SPI code for writing with a '9S12 SPI to a SD card I can look at? If so, it would save me some time sorting out the commands,...

Is there any SPI code for writing with a '9S12 SPI to a SD card I can look at? If so, it would save me some time sorting out the commands, etc. Regards, Donald E Haselwood


Re: spi debuging problem

Started by bailao in 68HC1211 years ago

Hi, I have try your approach,but it dose not work. Bailao???? ======== 2007-09-05 19:31:00 ????????????? ======== Hi, I've also had some...

Hi, I have try your approach,but it dose not work. Bailao???? ======== 2007-09-05 19:31:00 ????????????? ======== Hi, I've also had some problem with SPI (my prog has also stuck at that line, but not during reset), and (if I remember well) in the older posts on this forum there's a hint for the need to add another check before you can send the data. You can try this: unsigne


SPI 8 bit data latch

Started by linktek in 68HC1215 years ago 7 replies

Hi, Has anyone used the 4094 serial to parallel latch with the HC12 SPI buss - is it compatable (out of box)? Please advise ...

Hi, Has anyone used the 4094 serial to parallel latch with the HC12 SPI buss - is it compatable (out of box)? Please advise Thanks Frank


hc9S12D64 problem with SPI

Started by Wade A Smith in 68HC1213 years ago 2 replies

To all you HC12 guru types, I sent an email to freescale because I am having strange things happening with SPI. All he could...

To all you HC12 guru types, I sent an email to freescale because I am having strange things happening with SPI. All he could see is that I toggled a bit in PortK and he fussed about setting and clearing flags using BCLR/BSET. I wish he took the time to read.


Can SPI read a 16 bits data set?

Started by ly_h...@yahoo.com in 68HC1211 years ago 1 reply

Hi, I am using MC9S12DP256 microcontroller for my school project. In this project, I need to read a 16 bits SPI data from a device. As I...

Hi, I am using MC9S12DP256 microcontroller for my school project. In this project, I need to read a 16 bits SPI data from a device. As I know, the microcontroller SPI data register is 8 bits. So is it possible to read a 16 bits data, and how?? Thanks for any reply,,.. yeehaw


SPI Cable Length

Started by rudycepeda in 68HC1212 years ago 5 replies

Hi All I'm using the SPI of the MC68HC12B32 for comunicate it with an ADIS16003 accelerometer. I have some troubles with the signals...

Hi All I'm using the SPI of the MC68HC12B32 for comunicate it with an ADIS16003 accelerometer. I have some troubles with the signals integrity, and I can not find where is the problem. I suspect that it is caused by the length of the cable that I'm using, so I ask if anybody knows abput restrictions on its length. Thanks for tour atention. ------------------------ Yahoo! Groups S...


SD card interface

Started by "nielsen.daniel" in 68HC128 years ago 1 reply

on the dragon12+ board i am trying to create a data logger. i have been reading everywhere about using SPI to an external device. is it not...

on the dragon12+ board i am trying to create a data logger. i have been reading everywhere about using SPI to an external device. is it not possible to just put an SD card into the socket and read/write to it? i havent found any code or examples of this. am i suppose to use SPI commands to rx/tx to the SD card without any external hardware? ------------------------------------


How can I program the SPI Pinout of MC9S12DP256B

Started by caoshyh in 68HC1214 years ago

From the page 54 of MC9S12DP256B Device User Guide we can see that every SPI module of MC9S12DP256B have two sets of pins. But...

From the page 54 of MC9S12DP256B Device User Guide we can see that every SPI module of MC9S12DP256B have two sets of pins. But which set is the default one out of reset, and how can we reroute it. With the document published on the Freescale Web I can't determine how to do.


SPI pinout

Started by Claudio Imberlina in 68HC1215 years ago 2 replies

Hello, Where is the correct place for SPI 1 an 2, Port H or Port P ? There is a difference on page 54 of 9s12dp256bdgv2, and...

Hello, Where is the correct place for SPI 1 an 2, Port H or Port P ? There is a difference on page 54 of 9s12dp256bdgv2, and page 21 of the same guide, also from page 57. SPI0 and SPI1, are on Port H ? Thanks in advance Claudio Imberlina


ss on spi

Started by koby_bens in 68HC1214 years ago 2 replies

hi ! i work with the E128 and the codewarrior (i write in c) i use spi in my project (not as interrupt) with rising edge , i...

hi ! i work with the E128 and the codewarrior (i write in c) i use spi in my project (not as interrupt) with rising edge , i wanted to know if i can select the ss in a manual way.(i need to write 8 or 10 bytes while the ss is low and the sclk must be rising edge can i contr


spi oddities

Started by Ed Taylor in 68HC1215 years ago 2 replies

hi: i'm converting some tried and true hc11 code on a b32. already been through d7 issue as discussed earlier. i have a slow LCD...

hi: i'm converting some tried and true hc11 code on a b32. already been through d7 issue as discussed earlier. i have a slow LCD spi peripheral (64kbit speed) that can only be written every 500ms. moving the code over to the hc12b32 i am experiencing intermittent write failures. is there someth


How to use bidirectional communication of SPI

Started by in 68HC1215 years ago 7 replies

Hello At this time, I would like to know how to configure the SPI communication as bidirectional, one line communication,...

Hello At this time, I would like to know how to configure the SPI communication as bidirectional, one line communication, because I want to use L3 Protocol.(one line, hlaf duplex communcation). If anyone know where i can find reference, pls lst me know it


Optrex graphical displays

Started by macd...@... in 68HC1213 years ago 1 reply

I am trying to use one of the Optrex F-51852 128x64 graphical LCD's and I cannot get it to display anything. The display supports SPI and...

I am trying to use one of the Optrex F-51852 128x64 graphical LCD's and I cannot get it to display anything. The display supports SPI and this is what I am using to connect to the display. The problem with the SPI interface to this display is that it does not have an SO line. I have to send it the commands and hope they got through. Has anyone on this list


S12 SPI buffering problem

Started by Tim Raabe in 68HC1215 years ago 7 replies

I'm using a 6812DJ128B in a design, and I've noticed what seems to be a buffering error with an SPI routine that I use. Some...

I'm using a 6812DJ128B in a design, and I've noticed what seems to be a buffering error with an SPI routine that I use. Some information about what's happening: This routine querries a MC33993 device (Switch monitor). To query the device, I send out 0x00 3 times, and each


SPI SPIF not getting set (MC9S12DP256C)

Started by Graham Tricker in 68HC1214 years ago 1 reply

Hi I am using an SPI port in master mode and have the following routine to transmit/receive bytes from the slave. far byte...

Hi I am using an SPI port in master mode and have the following routine to transmit/receive bytes from the slave. far byte spi_RFTxRx (byte tda, byte *rda) /* spi_RFTxRx: ** ** Graham, Issue 1.0, 15 Dec 2003 ** ** Transmits and receives da


Serial in and serial out

Started by Lawrence Poon in 68HC1215 years ago 1 reply

For any one want to help, I need a templet to write the code for my HC12 to capture a 11 bit serial data from the SPI and store...

For any one want to help, I need a templet to write the code for my HC12 to capture a 11 bit serial data from the SPI and store it in a stack location. Later on, I need to call the data back and output it back to the SPI port. Is anyones know how to do this. I'm in a process of le


SPI problem Specifically about SPIDR

Started by amit shrigondekar in 68HC128 years ago 3 replies

Hi everyone .. I have a problem with SPI bus and I have pasted below=A0init functions for master and slave. if any body had the same problem,...

Hi everyone .. I have a problem with SPI bus and I have pasted below=A0init functions for master and slave. if any body had the same problem, kindly let me know how to get around that= . Problem: 1) =A0when I read SPIDR register it gives me random values and once in a while correct value 2) Also it does not copy any value =A0in the arr[] it just copies first location in arr void ...