Help ....Temperature Sensor

Discussion in 'General Electronics Chat' started by Zevoic, Dec 31, 2011.

  1. Zevoic

    Thread Starter New Member

    Dec 31, 2011
    3
    0
    hi all...can any one help me....about this ...one my programming assembly cannot connected with my electronic circuit ...i dont now how can do any thing else...about that..
    this my circuit link download :
    http://www.mediafire.com/?q82xypbqdeza236
    i make proteus 7.8 SP1 ...
    i m sorry about my english ...!!!

    regards

    Zevoic
     
  2. bertus

    Administrator

    Apr 5, 2008
    15,647
    2,346
    Hello,

    Can you post the schematic in a graphic format like .png.
    Not many have the proteus software over here (like me).

    Bertus
     
  3. Zevoic

    Thread Starter New Member

    Dec 31, 2011
    3
    0
    please correct my program .........i using 8051IDE editor....compile make .HEX file..!!!

    Program:

    Code ( (Unknown Language)):
    1.  
    2. rs equ p3.7
    3. rw equ p3.6
    4. LCD
    5. en equ p3.5
    6. Fan Bit P2.1
    7. Heater Bit P2.0
    8. Interrupt Bit P2.2
    9. Clr Fan
    10. Clr Heater
    11. pesan:
    12. call delay2
    13. call clear_screen
    14. call data_show2
    15. call delay
    16. mov b,#'T'
    17. call send_data
    18. call delay
    19. mov b,#'E'
    20. call _data
    21. call delay
    22. mov b,#'M'
    23. call send_data
    24. call delay
    25. mov b,#'C'
    26. call send_data
    27. call delay
    28. mov b,#' '
    29. call send_data
    30. call delay
    31. mov b,#'L'
    32. call send_data
    33. call delay
    34. mov b,#'A'
    35. call send_data
    36. call delay
    37. mov b,#'S'
    38. call send_data
    39. call delay
    40. mov b,#'S'
    41. call send_data
    42. call delay
    43.  
    44. main:
    45. acall tadc
    46. mov a,p0
    47. cjne a,#50,cek49
    48. call data_show3
    49. call data_scan
    50. mov b,#'('
    51. call send_data
    52. call delay
    53. mov b,#'5'
    54. call send_data
    55. call delay
    56. mov b,#'0'
    57. call send_data
    58. call delay
    59. mov b,#'"'
    60. call send_data
    61. call delay
    62. mov b,#'C'
    63. call send_data
    64. call delay
    65. mov b,#')'
    66. call send_data
    67. call delay
    68. Setb fan
    69. Clr Heater
    70. ljmp main
    71.  
    72. cek49:
    73. mov a,62h
    74. cjne a,#49,cek48
    75. call data_show3
    76. call data_scan
    77. mov b,#'('
    78. call send_data
    79. call delay
    80. mov b,#'4'
    81. call send_data
    82. call delay
    83. mov b,#'9'
    84. call send_data
    85. call delay
    86. mov b,#'"'
    87. call send_data
    88. call delay
    89. mov b,#'C'
    90. call send_data
    91. call delay
    92. mov b,#')'
    93. call send_data
    94. call delay
    95. Setb fan
    96. clr Heater
    97. ljmp main
    98.  
    99. cek48:
    100. mov a,62h
    101. cjne a,#48,cek47
    102. call data_show3
    103. call data_scan
    104. mov b,#'('
    105. call send_data
    106. call delay
    107. mov b,#'4'
    108. call send_data
    109. call delay
    110. mov b,#'8'
    111. call send_data
    112. call delay
    113. mov b,#'"'
    114. call send_data
    115. call delay
    116. mov b,#'C'
    117. call send_data
    118. call delay
    119. mov b,#')'
    120. call send_data
    121. call delay
    122. Setb fan
    123. clr Heater
    124. ljmp main
    125.  
    126. cek47:
    127. mov a,62h
    128. cjne a,#47,cek46
    129. call data_show3
    130. call data_scan
    131. mov b,#'('
    132. call send_data
    133. call delay
    134. mov b,#'4'
    135. call send_data
    136. call delay
    137. mov b,#'7'
    138. call send_data
    139. call delay
    140. mov b,#'"'
    141. call send_data
    142. call delay
    143. mov b,#'C'
    144. call send_data
    145. call delay
    146. mov b,#')'
    147. call send_data
    148. call delay
    149. Setb fan
    150. clr Heater
    151. ljmp main
    152.  
    153. cek46:
    154. mov a,62h
    155. cjne a,#46,cek45
    156. call data_show3
    157. call data_scan
    158. mov b,#'('
    159. call send_data
    160. call delay
    161. mov b,#'4'
    162. call send_data
    163. call delay
    164. mov b,#'6'
    165. call send_data
    166. call delay
    167. mov b,#'"'
    168. call send_data
    169. call delay
    170. mov b,#'C'
    171. call send_data
    172. call delay
    173. mov b,#')'
    174. call send_data
    175. call delay
    176. Setb fan
    177. clr Heater
    178. ljmp main
    179.  
    180. cek45:
    181. mov a,62h
    182. cjne a,#45,cek44
    183. call data_show3
    184. call data_scan
    185. mov b,#'('
    186. call send_data
    187. call delay
    188. mov b,#'4'
    189. call send_data
    190. call delay
    191. mov b,#'5'
    192. call send_data
    193. call delay
    194. mov b,#'"'
    195. call send_data
    196. call delay
    197. mov b,#'C'
    198. call send_data
    199. call delay
    200. mov b,#')'
    201. call send_data
    202. call delay
    203. Setb fan
    204. clr Heater
    205. ljmp main
    206.  
    207. cek44:
    208. mov a,62h
    209. cjne a,#44,cek43
    210. call data_show3
    211. call data_scan
    212. mov b,#'('
    213. call send_data
    214. call delay
    215. mov b,#'4'
    216. call send_data
    217. call delay
    218. mov b,#'4'
    219. call send_data
    220. call delay
    221. mov b,#'"'
    222. call send_data
    223. call delay
    224. mov b,#'C'
    225. call send_data
    226. call delay
    227. mov b,#')'
    228. call send_data
    229. call delay
    230. Setb fan
    231. clr Heater
    232. ljmp main
    233.  
    234. cek43:
    235. mov a,62h
    236. cjne a,#43,cek42
    237. call data_show3
    238. call data_scan
    239. mov b,#'('
    240. call send_data
    241. call delay
    242. mov b,#'4'
    243. call send_data
    244. call delay
    245. mov b,#'3'
    246. call send_data
    247. call delay
    248. mov b,#'"'
    249. call send_data
    250. call delay
    251. mov b,#'C'
    252. call send_data
    253. call delay
    254. mov b,#')'
    255. call send_data
    256. call delay
    257. Setb fan
    258. clr Heater
    259. ljmp main
    260.  
    261. cek42:
    262. mov a,62h
    263. cjne a,#42,cek41
    264. call data_show3
    265. call data_scan
    266. mov b,#'('
    267. call send_data
    268. call delay
    269. mov b,#'4'
    270. call send_data
    271. call delay
    272. mov b,#'2'
    273. call send_data
    274. call delay
    275. mov b,#'"'
    276. call send_data
    277. call delay
    278. mov b,#'C'
    279. call send_data
    280. call delay
    281. mov b,#')'
    282. call send_data
    283. call delay
    284. Setb fan
    285. clr Heater
    286. ljmp main
    287.  
    288. cek41:
    289. mov a,62h
    290. cjne a,#41,cek40
    291. call data_show3
    292. call data_scan
    293. mov b,#'('
    294. call send_data
    295. call delay
    296. mov b,#'4'
    297. call send_data
    298. call delay
    299. mov b,#'1'
    300. call send_data
    301. call delay
    302. mov b,#'"'
    303. call send_data
    304. call delay
    305. mov b,#'C'
    306. call send_data
    307. call delay
    308. mov b,#')'
    309. call send_data
    310. call delay
    311. Setb fan
    312. clr Heater
    313. ljmp main
    314.  
    315. cek40:
    316. mov a,62h
    317. cjne a,#40,cek39
    318. call data_show3
    319. call data_scan
    320. mov b,#'('
    321. call send_data
    322. call delay
    323. mov b,#'4'
    324. call send_data
    325. call delay
    326. mov b,#'0'
    327. call send_data
    328. call delay
    329. mov b,#'"'
    330. call send_data
    331. call delay
    332. mov b,#'C'
    333. call send_data
    334. call delay
    335. mov b,#')'
    336. call send_data
    337. call delay
    338. Setb fan
    339. clr Heater
    340. ljmp main
    341.  
    342. cek39:
    343. mov a,62h
    344. cjne a,#39,cek38
    345. call data_show3
    346. call data_scan
    347. mov b,#'('
    348. call send_data
    349. call delay
    350. mov b,#'3'
    351. call send_data
    352. call delay
    353. mov b,#'9'
    354. call send_data
    355. call delay
    356. mov b,#'"'
    357. call send_data
    358. call delay
    359. mov b,#'C'
    360. call send_data
    361. call delay
    362. mov b,#')'
    363. call send_data
    364. call delay
    365. clr fan
    366. clr Heater
    367. ljmp main
    368.  
    369. cek38:
    370. mov a,62h
    371. cjne a,#38,cek37
    372. call data_show3
    373. call data_scan
    374. mov b,#'('
    375. call send_data
    376. call delay
    377. mov b,#'3'
    378. call send_data
    379. call delay
    380. mov b,#'8'
    381. call send_data
    382. call delay
    383. mov b,#'"'
    384. call send_data
    385. call delay
    386. mov b,#'C'
    387. call send_data
    388. call delay
    389. mov b,#')'
    390. call send_data
    391. call delay
    392. clr fan
    393. clr Heater
    394. ljmp main
    395.  
    396. cek37:
    397. mov a,62h
    398. cjne a,#37,cek36
    399. call data_show3
    400. call data_scan
    401. mov b,#'('
    402. call send_data
    403. call delay
    404. mov b,#'3'
    405. call send_data
    406. call delay
    407. mov b,#'7'
    408. call send_data
    409. call delay
    410. mov b,#'"'
    411. call send_data
    412. call delay
    413. mov b,#'C'
    414. call send_data
    415. call delay
    416. mov b,#')'
    417. call send_data
    418. call delay
    419. clr fan
    420. clr Heater
    421. ljmp main
    422.  
    423. cek36:
    424. mov a,62h
    425. cjne a,#36,cek35
    426. call data_show3
    427. call data_scan
    428. mov b,#'('
    429. call send_data
    430. call delay
    431. mov b,#'3'
    432. call send_data
    433. call delay
    434. mov b,#'6'
    435. call send_data
    436. call delay
    437. mov b,#'"'
    438. call send_data
    439. call delay
    440. mov b,#'C'
    441. call send_data
    442. call delay
    443. mov b,#')'
    444. call send_data
    445. call delay
    446. clr fan
    447. setb Heater
    448. ljmp main
    449.  
    450. cek35:
    451. mov a,62h
    452. cjne a,#35,cek34
    453. call data_show3
    454. call data_scan
    455. mov b,#'('
    456. call send_data
    457. call delay
    458. mov b,#'3'
    459. call send_data
    460. call delay
    461. mov b,#'5'
    462. call send_data
    463. call delay
    464. mov b,#'"'
    465. call send_data
    466. call delay
    467. mov b,#'C'
    468. call send_data
    469. call delay
    470. mov b,#')'
    471. call send_data
    472. call delay
    473. clr fan
    474. setb Heater
    475. ljmp main
    476.  
    477. cek34:
    478. mov a,62h
    479. cjne a,#34,cek33
    480. call data_show3
    481. call data_scan
    482. mov b,#'('
    483. call send_data
    484. call delay
    485. mov b,#'3'
    486. call send_data
    487. call delay
    488. mov b,#'4'
    489. call send_data
    490. call delay
    491. mov b,#'"'
    492. call send_data
    493. call delay
    494. mov b,#'C'
    495. call send_data
    496. call delay
    497. mov b,#')'
    498. call send_data
    499. call delay
    500. clr fan
    501. setb Heater
    502. ljmp main
    503.  
    504. cek33:
    505. mov a,62h
    506. cjne a,#33,cek32
    507. call data_show3
    508. call data_scan
    509. mov b,#'('
    510. call send_data
    511. call delay
    512. mov b,#'3'
    513. call send_data
    514. call delay
    515. mov b,#'3'
    516. call send_data
    517. call delay
    518. mov b,#'"'
    519. call send_data
    520. call delay
    521. mov b,#'C'
    522. call send_data
    523. call delay
    524. mov b,#')'
    525. call send_data
    526. call delay
    527. clr fan
    528. setb Heater
    529. ljmp main
    530.  
    531. cek32:
    532. mov a,62h
    533. cjne a,#32,cek31
    534. call data_show3
    535. call data_scan
    536. mov b,#'('
    537. call send_data
    538. call delay
    539. mov b,#'3'
    540. call send_data
    541. call delay
    542. mov b,#'2'
    543. call send_data
    544. call delay
    545. mov b,#'"'
    546. call send_data
    547. call delay
    548. mov b,#'C'
    549. call send_data
    550. call delay
    551. mov b,#')'
    552. call send_data
    553. call delay
    554. clr fan
    555. setb Heater
    556. ljmp main
    557.  
    558. cek31:
    559. mov a,62h
    560. cjne a,#31,cek30
    561. call data_show3
    562. call data_scan
    563. mov b,#'('
    564. call send_data
    565. call delay
    566. mov b,#'3'
    567. call send_data
    568. call delay
    569. mov b,#'1'
    570. call send_data
    571. call delay
    572. mov b,#'"'
    573. call send_data
    574. call delay
    575. mov b,#'C'
    576. call send_data
    577. call delay
    578. mov b,#')'
    579. call send_data
    580. call delay
    581. clr fan
    582. setb Heater
    583. ljmp main
    584.  
    585. cek30:
    586. mov a,62h
    587. cjne a,#30,cek29
    588. call data_show3
    589. call data_scan
    590. mov b,#'('
    591. call send_data
    592. call delay
    593. mov b,#'3'
    594. call send_data
    595. call delay
    596. mov b,#'0'
    597. call send_data
    598. call delay
    599. mov b,#'"'
    600. call send_data
    601. call delay
    602. mov b,#'C'
    603. call send_data
    604. call delay
    605. mov b,#')'
    606. call send_data
    607. call delay
    608. clr fan
    609. setb Heater
    610. ljmp main
    611.  
    612. cek29:
    613. mov a,62h
    614. cjne a,#29,balik_main
    615. call data_show3
    616. call data_scan
    617. mov b,#'('
    618. call send_data
    619. call delay
    620. mov b,#'2'
    621. call send_data
    622. call delay
    623.  mov b,#'9'
    624. call send_data
    625. call delay
    626. mov b,#'"'
    627. call send_data
    628. call delay
    629. mov b,#'C'
    630. call send_data
    631. call delay
    632. mov b,#')'
    633. call send_data
    634. call delay
    635. clr fan
    636. setb Heater
    637. ljmp main
    638. balik_main:
    639. ljmp main
    640.  
    641. data_show2:
    642. mov b,#0ch     ; writings appear or not
    643. call data_scan
    644. mov b,#06h     ; slide right / left / fixed
    645. call data_scan
    646. mov b,#80h     ; initial position of the character
    647. call data_scan
    648. ret
    649. data_show3:
    650. mov b,#0ch     ; writings appear or not
    651. call data_scan
    652. mov b,#06h     ; slide right / left / fixed
    653. call data_scan
    654. mov b,#0c0h    ; initial position of the character
    655. call data_scan
    656. ret
    657.  
    658. clear_screen:
    659. mov b,#01h
    660. call data_scan
    661. ret
    662.  
    663. data_scan:
    664. mov p1,b
    665. clr rs
    666. clr rw
    667. setb en
    668. call delay
    669. clr en
    670. call delay
    671. ret
    672. send_data:
    673. mov p1,b
    674. setb rs
    675. clr rw
    676. setb en
    677. call delay
    678. clr en
    679. call delay
    680. ret
    681. delay:
    682. mov r7,#100
    683. dly:
    684. mov r6,#255
    685. djnz r6,$
    686. djnz r7,dly
    687. ret
    688. dly2:
    689. mov r7,#100
    690. delay2:
    691. mov r6,#70
    692. dl2:
    693. mov r5,#60
    694. djnz r5,$
    695. djnz r6,dl2
    696. djnz r7,dly2
    697. ret
    698. tadc:
    699. mov r7,#80h
    700. adc: mov r6,#50h
    701. djnz r6,$
    702. djnz r7,adc
    703. ret
    704. end
    705.  
    706.  
     
    Last edited by a moderator: Dec 31, 2011
  4. bertus

    Administrator

    Apr 5, 2008
    15,647
    2,346
    Hello,

    Do you have a schematic for the used hardware?

    Bertus
     
  5. Zevoic

    Thread Starter New Member

    Dec 31, 2011
    3
    0
    Scematic pic :

    [​IMG]
    sorry i don't no how can upload my pic in this forum....
    [​IMG]
     
    Last edited: Dec 31, 2011
  6. bertus

    Administrator

    Apr 5, 2008
    15,647
    2,346
    Hello,

    I dislike the site you use, it gives some unwanted popups.

    You can have a look at the FAQ:

    Bertus
     
Loading...