Discussion in "PIC Microcontroller Discussion" started by    Luqman    Jul 30, 2007.
Wed Aug 08 2007, 04:22 pm
#11
Y does 9306 Serial EEPROM is interfaced with controllers? Is it good to interfaced it with PIC controllers?
Wed Aug 08 2007, 04:56 pm
#12
well selecting an EEPROM for your project is usually depends on your requirement, and also second point is the compatibility. Its not mandatory that you should use only one type of EEPROM. e.g. your project need a maximum data of 2Kb to store so, there is no point for you to use an EEPROM of 8Kb or something.. i hope you understand my point. So according to need of your project you can select EEPROM.
Mon Aug 20 2007, 05:42 pm
#13
hi, ajay

There is a comparator module in PIC 16F877 how can i configure it or program it to achieve system hysteresis i.e. the stability(control) in on/off a device?
Mon Aug 20 2007, 05:59 pm
#14
you cannot achieve a perfect hysteresis in comparator. because minor fluctuations are always there. But i really don't know any other method to achieve hysteresis except taking averages. I have seen many projects (like digital thermometer etc.) where i have taken averages and its working pretty file. You can also define a particular limit upto which the o/p holds its stability.
e.g. define rage for a constant value.
say you want to have a value 5 for which switching is done.
so define a range. like.. from 3-7 or 4-6 as per your need and amount of fluctuation. This will help you control the switching and minor fluctuations will be neglected.

Also what you can have a high resolution comparator. That also will solve your purpose, but it will be a separate hardware.
Tue Aug 21 2007, 12:37 pm
#15
would u brief me an example C code to define a specific range and amount of fluctuation.How can i get C code for digital thermometer from download section at the forum
Tue Aug 21 2007, 03:07 pm
#16
I have not posted the thermometer project yet.. but i will do it. soon...
instead of just using one if statement
like
if(dat<5)
switch something
else
switch something

A range can be specified something like this..
if(dat>6)
switch something
else if(dat<4)
switch something

so this way you have specified the switching range.. instead of just switching at 5 u are actually providing +/-1 limit to the switching.
I hope you have got it..
Wed Aug 22 2007, 11:51 pm
#17
i've downloaded ur code at download section for 89C4051 as RTC as it is a software based RTC instead of interfacing external RTC IC's ,but i didn't understand it completely so i want to know that from where did u conceived the idea is there any resources(like tutorial) available on the net which help me to understand the software based RTC.
Wed Aug 22 2007, 11:53 pm
#18
well.. the only idea i had in mind was...
60 seconds = 1 min
60 min = 1hr
24 hr = 1 day
30/31/28 days = 1 month
12 months = 1 year

So i had this idea using a for loop!! isn't that simple?
Thu Aug 23 2007, 03:01 pm
#19
i read 89C4051 as RTC and only understand few functions with the help of commenst written in the code the remaining functions i did not understand would u give details of the code in a tutorial manner as u have done it in the LCD tutorial.
Thu Aug 23 2007, 03:15 pm
#20
its a biiiiggg.. code.. i cannot comment all of it... will look rubbish.. also it need time.. you can paste the part of code which u didn't understand, i will comment it here..

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

ArnoldDiant
Fri Apr 26 2024, 03:53 am
RodneyKnorb
Thu Apr 25 2024, 07:08 pm
Williamjef
Thu Apr 25 2024, 02:08 pm
SamuelSmise
Thu Apr 25 2024, 09:56 am
DustinErele
Thu Apr 25 2024, 08:44 am
ztaletpzca
Wed Apr 24 2024, 11:19 pm
IrardlPex
Wed Apr 24 2024, 08:42 pm
Charlestehed
Wed Apr 24 2024, 05:20 pm