The Godfather talking
You think I am funny guy huh?
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 16, 2024, 01:11:29 01:11


Login with username, password and session length


Pages: [1]
Print
Author Topic: how to send 36 bit synchronized serial data with pbp?  (Read 3493 times)
0 Members and 1 Guest are viewing this topic.
tyildizak
Newbie
*
Offline Offline

Posts: 15

Thank You
-Given: 7
-Receive: 8


« on: September 17, 2007, 03:57:25 15:57 »

Hi,
I want to use lite_on ltm8522 serial 3 dig 7 seg display
(datasheet: http://rapidshare.tv/601510 ) which requires 36 bit data with clock.
Is it possible to send this kind of data using shiftout command in pbp ?
Thanks.
Logged
karlosmks
Guest
« Reply #1 on: September 17, 2007, 04:46:31 16:46 »

This is a example with RTC DS1302:

    RELRST = 1 ' Ready for transfer
    ' Write all 8 RTC registers in burst mode
    Shiftout RELIO, RELSCLK, LSBFIRST, [$be, rtcsec, rtcmin, rtchr, rtcdate, rtcmonth, rtcday, rtcyear, 0]
    RELRST = 0 ' Reset RTC

Logged
piclover
Newbie
*
Offline Offline

Posts: 29

Thank You
-Given: 27
-Receive: 98


« Reply #2 on: November 22, 2007, 12:42:46 12:42 »

Yes it is!

SHIFTOUT DataPin,ClockPin,Mode,[Var{\Bits}...]  ' from MCS help.

For every VAR U can decide how much bits will be send.

SHIFTOUT PORTA.1, PORTA.2, 1,[wordvar\10, bytevar, anotherwordwar\13, anotherbytevar\5  ......]

Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC