(a) Upon conviction in the trial court or upon denial in that court of a motion made pursuant to C PL 440.10 or 440.20 or the denial or dismissal of an application in a habeas corpus or CPLR article 78 proceeding, it shall be the duty of the counsel for the defendant, immediately after the pronouncement of sentence or after service upon him of a copy of the order denying the motion or of the order or judgment denying or dismissing the application, to give, either by mail or personally, written notice
In every criminal action or proceeding specified in section 671.1 of this Part the duration of the representation by counsel for the defendant shall be as follows: (a) in the trial court, until determination of the action or proceeding and until counsel shall have performed the additional duties imposed upon him by these rules; and (b) in the appellate court, until entry of the order determining the appeal and until counsel shall have performed the additional duties imposed upon him by these rules