How to read a word in one clock cycle

Started by yklein2004 in 68HC1211 years ago 2 replies

Hi, I'm using MC9S12DP256, and in the Freescale manual it says when using PACA (16-bit pulse accumulator) "Full count register access...

Hi, I'm using MC9S12DP256, and in the Freescale manual it says when using PACA (16-bit pulse accumulator) "Full count register access should take place in one clock cycle. A separate read/write for high byte and low byte will give a different result than accessing them as a word." My question is what's the command in C to read the word in one clock cycle?


Input Capture and Output Compare for MC9S12DP256

Started by yawjiun_84 in 68HC1210 years ago

Hi, Can I know where I can get the detail information on the basic steps to write program for the interrupt in C? Any sample code as a...

Hi, Can I know where I can get the detail information on the basic steps to write program for the interrupt in C? Any sample code as a reference? Basically, I will use Output Compare function to generate a step pulse train to a stepper motor driver. Meanwhile, Input Capture function will be used to detect the quadrature encoder input as a feedback. Any reference or sample code on this? W...


NOICE debugger / Axiom board / ICC12

Started by chil326 in 68HC1214 years ago 2 replies

Hello, i use icc12 with CML9S-12DP256 board from Axiom ( MC9S12DP256 MCU). I want to debug with noice debugger but i can't step...

Hello, i use icc12 with CML9S-12DP256 board from Axiom ( MC9S12DP256 MCU). I want to debug with noice debugger but i can't step the source file with it. The program runs until main, and then, when i want to step with NOICE debugger, it doesn't work because the program runs without


Can SPI read a 16 bits data set?

Started by ly_h...@yahoo.com in 68HC1210 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